Use nohup and sleep a little to improve stability when launching a node

This commit is contained in:
Michael Vines 2019-05-27 08:47:11 -07:00
parent 50303c9ede
commit 1eceb4831d
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 4 additions and 2 deletions

View File

@ -89,7 +89,8 @@ local|tar)
--gossip-port "$entrypointIp":8001
)
./multinode-demo/validator.sh --bootstrap-leader "${args[@]}" > fullnode.log 2>&1 &
nohup ./multinode-demo/validator.sh --bootstrap-leader "${args[@]}" > fullnode.log 2>&1 &
sleep 1
;;
validator|blockstreamer)
net/scripts/rsync-retry.sh -vPrc "$entrypointIp":~/.cargo/bin/ ~/.cargo/bin/
@ -144,7 +145,8 @@ local|tar)
curl --head "$(curl ifconfig.io)"
fi
./multinode-demo/validator.sh "${args[@]}" > fullnode.log 2>&1 &
nohup ./multinode-demo/validator.sh "${args[@]}" > fullnode.log 2>&1 &
sleep 1
;;
*)
echo "Error: unknown node type: $nodeType"