Add --force and --monitor options to exit
subcommand
This commit is contained in:
committed by
mergify[bot]
parent
65dd177601
commit
ac8ccee6b8
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user