fullnode.rs: restart the node correctly on non-zero exit
This commit is contained in:
parent
ead947e710
commit
2ae595294c
|
@ -423,14 +423,16 @@ while true; do
|
|||
fi
|
||||
|
||||
if [[ $node_type = bootstrap_leader ]]; then
|
||||
wait "$pid"
|
||||
wait "$pid" || true
|
||||
echo "############## $node_type exited, restarting ##############"
|
||||
sleep 1
|
||||
else
|
||||
secs_to_next_genesis_poll=1
|
||||
while true; do
|
||||
if ! kill -0 "$pid"; then
|
||||
wait "$pid"
|
||||
exit 0
|
||||
wait "$pid" || true
|
||||
echo "############## $node_type exited, restarting ##############"
|
||||
break
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
|
Loading…
Reference in New Issue