Skip to content

Instantly share code, notes, and snippets.

@pointbiz
Created July 23, 2017 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pointbiz/c9d7e4c3a69832944a92f43df6332481 to your computer and use it in GitHub Desktop.
Save pointbiz/c9d7e4c3a69832944a92f43df6332481 to your computer and use it in GitHub Desktop.
#!/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