Skip to content
Permalink
Browse files

Update healthcheck.sh

  • Loading branch information...
thanhson1085 committed Nov 27, 2018
1 parent 0dc9d67 commit f7648099e2a363341a1025f715e4cda745b77742
Showing with 1 addition and 1 deletion.
  1. +1 −1 healthcheck.sh
@@ -26,7 +26,7 @@ prvBlockNumber=`cat /tmp/.healthcheck`
if [ "${blockNumber}" == "${prvBlockNumber}" ]; then
# restart node
echo "Node does not work! Restart it!"
cd /vagrant && nohup bash ./node.sh<&- &>/vagrant/node.${DATE_WITH_TIME}.log &
pkill -f "bin/tomo" && cd /vagrant && nohup bash ./node.sh<&- &>/vagrant/node.${DATE_WITH_TIME}.log &
fi
echo ${blockNumber} > /tmp/.healthcheck

0 comments on commit f764809

Please sign in to comment.
You can’t perform that action at this time.