fixe for wait loop

This commit is contained in:
Philippe Lamy
2021-05-13 09:56:53 -04:00
parent b398d58690
commit aa11eba2df
2 changed files with 5 additions and 3 deletions

View File

@@ -6,11 +6,13 @@ BITCOIN_CLI='bitcoin-cli'
BITCOIN_CLI="$BITCOIN_CLI -regtest"
<% } %>
USER="`id -u -n`:`id -g -n`"
while [ true ];
do
sleep 5;
sleep 10;
echo "CYPHERNODE: bitcoind is starting"
${BITCOIN_CLI} echo && touch /container_monitor/bitcoin_ready && break || rm -f /container_monitor/bitcoin_ready
chown $USER /container_monitor && ${BITCOIN_CLI} echo && touch /container_monitor/bitcoin_ready && chown $USER /container_monitor/bitcoin_ready && break || rm -f /container_monitor/bitcoin_ready
done
echo "CYPHERNODE: bitcoind is ready"

View File

@@ -13,7 +13,7 @@ while [ -z "${TORIP}" ]; do echo "tor not ready" ; TORIP=$(getent hosts tor | aw
#TORIP=$(getent hosts tor | awk '{ print $1 }')
echo "tor ready at IP ${TORIP}"
lightningd --proxy=$TORIP:9050
exec lightningd --proxy=$TORIP:9050
<% } else { %>
exec lightningd