New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ipfs-node-restart

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-node-restart

Reconnects/Restarts your node if you are offline

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

ipfs-reconnect

Reconnects/Restarts your node automatically if you are offline.

Usage

Options:
  -i, --interval        Scan Interval                   [number] [default: 1000]
  -b, --binary          Path to IPFS binary           [string] [default: "ipfs"]
  -r, --restart         Allow restart                 [boolean] [default: false]
  -s, --restart-script  Path to restart script            [string] [default: ""]
  -m, --min-nodes       Minimum nodes online               [number] [default: 4]
  -p, --path            Path to IPFS repo [string] [default: "/home/user/.ipfs"]
  -h, --help            Show help                                      [boolean]

Copyright (C) 2015 Maciej Krüger
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Restart Script

Start the IPFS Daemon as background - the application will wait for the script to exit

Example Script (with screen):

screen -X -S ipfs quit
screen -dmS ipfs ipfs daemon
waitfor() {
  curl $1  --connect-timeout 1 -m 1 -s 2>/dev/null > /dev/null
  if [ $? -ne 0 ]; then
    waitfor $1
  fi
}
waitfor "localhost:5001/webui"

Keywords

ipfs

FAQs

Package last updated on 06 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts