forked from axiom-team/astrXbian
ipfs daemon was not running. RELAUNCHING.
This commit is contained in:
parent
bb16183a11
commit
f167d5842b
|
@ -23,7 +23,7 @@ source $HOME/.profile
|
|||
## CONTROL IPFS IS RUNNING OR RESTART
|
||||
isIPFSRunning=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1)
|
||||
if [[ ! $isIPFSRunning ]]; then
|
||||
[[ -f /etc/sudoers.d/systemctl && -f ~/.zen/ipfs/.$IPFSNODEID/.switch ]] && sudo systemctl restart ipfs
|
||||
[[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs
|
||||
echo "ERROR! ipfs daemon was not running. RELAUNCHING."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue