360 sec wait for ipfs restart

This commit is contained in:
fred 2024-01-22 17:45:05 +01:00
parent 23d369f967
commit 4842096007
1 changed files with 3 additions and 2 deletions

View File

@ -19,9 +19,10 @@ sudo systemctl restart ipfs && sleep 10
floop=0 floop=0
while [[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]]; do while [[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]]; do
sleep 10 sleep 10
((floop++)) && [ $floop -gt 9 ] \ ((floop++)) && [ $floop -gt 36 ] \
&& echo "ERROR. IPFS daemon not restarting" \ && 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 done
# espeak "CODE git pull" > /dev/null 2>&1 # espeak "CODE git pull" > /dev/null 2>&1