mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
test: shutdown harder.
Sometimes bitcoind takes a while to shutdown. Just kill it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
5f5ad793e9
commit
9b045dac02
@ -2,5 +2,10 @@
|
||||
|
||||
. `dirname $0`/vars.sh
|
||||
|
||||
[ ! -f $DATADIR/regtest/bitcoind.pid ] || BITCOIN_PID=`cat $DATADIR/regtest/bitcoind.pid`
|
||||
|
||||
$CLI stop
|
||||
sleep 1 # Make sure socket is closed.
|
||||
|
||||
# Now make sure it's dead.
|
||||
if [ -n "$BITCOIN_PID" ]; then kill -9 $BITCOIN_PID 2>/dev/null || true; fi
|
||||
|
Loading…
Reference in New Issue
Block a user