2015-09-29 08:32:02 +01:00
|
|
|
#! /bin/sh -e
|
|
|
|
|
|
|
|
. `dirname $0`/vars.sh
|
|
|
|
|
2016-11-08 11:25:55 +00:00
|
|
|
[ ! -f $DATADIR/regtest/bitcoind.pid ] || BITCOIN_PID=`cat $DATADIR/regtest/bitcoind.pid`
|
|
|
|
|
2015-09-29 08:32:02 +01:00
|
|
|
$CLI stop
|
|
|
|
sleep 1 # Make sure socket is closed.
|
2016-11-08 11:25:55 +00:00
|
|
|
|
|
|
|
# Now make sure it's dead.
|
|
|
|
if [ -n "$BITCOIN_PID" ]; then kill -9 $BITCOIN_PID 2>/dev/null || true; fi
|