Skip to content

Instantly share code, notes, and snippets.

Created Jul 23, 2017
What would you like to do?
/root/./bitcoin-cli -datadir=/root/.bitcoin stop
echo Do not shut down the device until notified
x=$(pgrep -f bitcoind)
while [ "$x" != "" ]
echo -n "."
sleep 1s
x=$(pgrep -f bitcoind)
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