Browse Source

keep bitcoind container up if bitcoind exits with an error

fix_mydojo_hang_backport
kenshin-samourai 5 years ago
parent
commit
fa00958284
  1. 15
      docker/my-dojo/bitcoin/restart.sh

15
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

Loading…
Cancel
Save