forked from STI/Astroport.ONE
360 sec wait for ipfs restart
This commit is contained in:
parent
23d369f967
commit
4842096007
|
@ -19,8 +19,9 @@ 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" \
|
||||||
|
&& $MY_PATH/tools/mailjet.sh "support@qo-op.com" "/tmp/20h12.log" "IPFS RESTART ERROR 20H12" \
|
||||||
&& exit 1
|
&& exit 1
|
||||||
done
|
done
|
||||||
# espeak "CODE git pull" > /dev/null 2>&1
|
# espeak "CODE git pull" > /dev/null 2>&1
|
||||||
|
|
Loading…
Reference in New Issue