From a6054c3eb982c2817144393971072aff22ffaa85 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Tue, 14 Jan 2025 13:55:06 -0800 Subject: [PATCH] Fix shutdown gracefulness --- wallet.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wallet.sh b/wallet.sh index 3dfbc93..2c12cba 100755 --- a/wallet.sh +++ b/wallet.sh @@ -81,9 +81,7 @@ start_bitcoind() { stop_bitcoind_daemon() { bitcoin_pid=$(pgrep bitcoind) - echo "Kill bitcoind with kill -SIGTERM" - kill -SIGTERM "$bitcoin_pid" - echo "bitcoind PID: ${bitcoin_pid}" + bitcoin-cli stop while kill -0 "$bitcoin_pid" 2> /dev/null; do echo "Waiting for bitcoind process to stop." check_bitcoin_is_running