Skip to content

Instantly share code, notes, and snippets.

@pointbiz
Created Jul 23, 2017
Embed
What would you like to do?
#!/bin/bash
/root/./bitcoin-cli -datadir=/root/.bitcoin stop
echo Do not shut down the device until notified
x=$(pgrep -f bitcoind)
while [ "$x" != "" ]
do
echo -n "."
sleep 1s
x=$(pgrep -f bitcoind)
done
echo "bitcoin has stopped. OK to shutdown"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment