Browse Source

display "preparing shutdown" message earlier

use-env-var-docker
kenshin-samourai 5 years ago
parent
commit
d4f54b2190
  1. 4
      docker/my-dojo/dojo.sh

4
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 \

Loading…
Cancel
Save