Skip to content

Commit

Permalink
Fix shutdown gracefulness (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera authored Jan 15, 2025
1 parent 4a1b4b8 commit adcdf57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit adcdf57

Please sign in to comment.