Added wait loop for tor

This commit is contained in:
Philippe Lamy
2021-05-10 11:33:53 -04:00
parent e8e4afba13
commit b398d58690

View File

@@ -2,6 +2,16 @@
rm -f /container_monitor/bitcoin_ready
<% if ( features.indexOf('tor') !== -1 && torifyables && torifyables.indexOf('tor_bitcoin') !== -1 ) { %>
while [ ! -f "/container_monitor/tor_ready" ];
do
echo "CYPHERNODE: Waiting for Tor to be ready before starting bitcoind"
sleep 10
done
echo "CYPHERNODE: Tor is ready - Starting bitcoind"
<% } %>
# Create default wallets if they are not loaded
/.bitcoin/createWallets.sh &
exec bitcoind