From 3581264adb0984cdbdc691e0e783215e619618a3 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Mon, 10 May 2021 16:26:52 +0530 Subject: [PATCH] Change to keep the Docker container running --- start.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/start.sh b/start.sh index 8f06950..88aa369 100644 --- a/start.sh +++ b/start.sh @@ -76,7 +76,7 @@ curl --silent http://localhost:3001/api/status?q=getBestBlockHash > currentHealt echo 'different' > previousHealthCheck.log # Every 5 minutes -#while true; do +while true; do # # Check to see if the most recent block hash is the same as the last time we checked. # if [ "$(cat previousHealthCheck.log)" == "$(cat currentHealthCheck.log)" ] # then @@ -87,10 +87,10 @@ echo 'different' > previousHealthCheck.log # ./node_modules/flocore-node/bin/flocore-node start >> /data/latest.log & # # Store PID for later # echo $! > /data/flosight.pid -# fi +fi # # Wait 5 minutes before checking again -# timeout 5m tail -f /data/latest.log +timeout 5m tail -f /data/latest.log # # mv currentHealthCheck.log previousHealthCheck.log # curl --silent http://localhost:3001/api/status?q=getBestBlockHash > currentHealthCheck.log -#done; \ No newline at end of file +done; \ No newline at end of file