From 48420960073190769f491361918b72f68a0351bf Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 22 Jan 2024 17:45:05 +0100 Subject: [PATCH] 360 sec wait for ipfs restart --- 20h12.process.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/20h12.process.sh b/20h12.process.sh index 78ce6cd2..9a1f3a07 100755 --- a/20h12.process.sh +++ b/20h12.process.sh @@ -19,9 +19,10 @@ sudo systemctl restart ipfs && sleep 10 floop=0 while [[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]]; do sleep 10 - ((floop++)) && [ $floop -gt 9 ] \ + ((floop++)) && [ $floop -gt 36 ] \ && echo "ERROR. IPFS daemon not restarting" \ - && exit 1 + && $MY_PATH/tools/mailjet.sh "support@qo-op.com" "/tmp/20h12.log" "IPFS RESTART ERROR 20H12" \ + && exit 1 done # espeak "CODE git pull" > /dev/null 2>&1