Skip to content

Instantly share code, notes, and snippets.

@pointbiz
Created July 23, 2017 03:12
Show Gist options
  • 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