ipfs daemon was not running. RELAUNCHING.

This commit is contained in:
qo-op 2021-07-06 22:48:47 +02:00
parent bb16183a11
commit f167d5842b
1 changed files with 1 additions and 1 deletions

View File

@ -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