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
|
## 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)
|
isIPFSRunning=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1)
|
||||||
if [[ ! $isIPFSRunning ]]; then
|
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."
|
echo "ERROR! ipfs daemon was not running. RELAUNCHING."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue