From d4f54b2190868b169851308b25fe0c96d1f84ea1 Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Tue, 9 Jun 2020 16:17:28 +0200 Subject: [PATCH] display "preparing shutdown" message earlier --- docker/my-dojo/dojo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/my-dojo/dojo.sh b/docker/my-dojo/dojo.sh index 6ae0972..bb57302 100755 --- a/docker/my-dojo/dojo.sh +++ b/docker/my-dojo/dojo.sh @@ -72,7 +72,8 @@ start() { # Stop stop() { - # Check if dojo is running (check the db container) + echo "Preparing shutdown of Dojo. Please wait." + # Check if dojo is running (check the db container) isRunning=$(docker inspect --format="{{.State.Running}}" db 2> /dev/null) if [ $? -eq 1 ] || [ "$isRunning" == "false" ]; then echo "Dojo is already stopped." @@ -85,7 +86,6 @@ stop() { docker exec -it tor rm -rf /var/lib/tor/hsv2bitcoind fi # Stop the bitcoin daemon - echo "Preparing shutdown of dojo. Please wait." $( docker exec -it bitcoind bitcoin-cli \ -rpcconnect=bitcoind \ --rpcport=28256 \