From 34e5862878cc225bfdfef66fb5bd413b82b301c9 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 20 Sep 2021 02:53:47 +0200 Subject: [PATCH] maximum 20s ipfs daemon response time OR restart --- cron_MINUTE.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 945b0e4..6549daf 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -20,7 +20,7 @@ source $HOME/.profile #### CONTROL STATION IPFS DAEMON ## timeout is fixing ipfs minimum response time, before considering stuck process -IPFSNODEID=$(ipfs --timeout=10s id -f='\n') +IPFSNODEID=$(ipfs --timeout=20s id -f='\n') [[ ! $IPFSNODEID && -f /etc/sudoers.d/systemctl ]] && echo "IPFS NOT RUNNING" && sudo systemctl restart ipfs && exit 1 [[ ! $IPFSNODEID && "${USER}" == "xbian" ]] && echo "IPFS NOT RUNNING" && sudo service ipfs restart && exit 1 ## CONTROL IPFS IS RUNNING OR RESTART