Add --force and --monitor options to exit subcommand

This commit is contained in:
Michael Vines
2021-03-10 15:28:42 -08:00
committed by mergify[bot]
parent 65dd177601
commit ac8ccee6b8
3 changed files with 63 additions and 20 deletions

View File

@ -202,8 +202,8 @@ killNodes() {
# Try to use the RPC exit API to cleanly exit the first two nodes
# (dynamic nodes, -x, are just killed)
echo "--- RPC exit"
$solana_validator --ledger "$SOLANA_CONFIG_DIR"/bootstrap-validator exit || true
$solana_validator --ledger "$SOLANA_CONFIG_DIR"/validator exit || true
$solana_validator --ledger "$SOLANA_CONFIG_DIR"/bootstrap-validator exit --force || true
$solana_validator --ledger "$SOLANA_CONFIG_DIR"/validator exit --force || true
# Give the nodes a splash of time to cleanly exit before killing them
sleep 2

View File

@ -26,7 +26,7 @@ while [[ $($solana_cli --url http://localhost:8899 slot --commitment recent) -le
sleep 1
done
$solana_validator --ledger config/ledger exit || true
$solana_validator --ledger config/ledger exit --force || true
wait $pid