From fa009582848359077248fa4fa725b0e82eecbf6c Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Fri, 17 Jan 2020 11:15:58 +0100 Subject: [PATCH] keep bitcoind container up if bitcoind exits with an error --- docker/my-dojo/bitcoin/restart.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/docker/my-dojo/bitcoin/restart.sh b/docker/my-dojo/bitcoin/restart.sh index b01a7ac..3294c28 100644 --- a/docker/my-dojo/bitcoin/restart.sh +++ b/docker/my-dojo/bitcoin/restart.sh @@ -40,13 +40,10 @@ if [ "$COMMON_BTC_NETWORK" == "testnet" ]; then fi bitcoind "${bitcoind_options[@]}" -exitCode=$? -if [ $exitCode -eq 0 ]; then - # Loop keeping the container up - # after bitcoind has been stopped - while true - do - tail -f /dev/null > /dev/null - done -fi +# Loop keeping the container up +# after bitcoind has been stopped +while true +do + tail -f /dev/null > /dev/null +done