mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-02 20:45:36 +01:00
Added wait loop for tor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user