Skip to content

Commit

Permalink
keep bitcoind container up if bitcoind exits with an error
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshin-samourai committed Jan 13, 2020
1 parent 08342e3 commit 0ff045d
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions docker/my-dojo/bitcoin/restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0ff045d

Please sign in to comment.