From f167d5842b93fd61e4df91c4e56f728af7b3501a Mon Sep 17 00:00:00 2001 From: qo-op Date: Tue, 6 Jul 2021 22:48:47 +0200 Subject: [PATCH] ipfs daemon was not running. RELAUNCHING. --- cron_MINUTE.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 18199a4..71e52c4 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -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