mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 02:22:24 +01:00
lnbits: Wait for CLN RPC socket to become available before (#4931)
allowing lnbits to start up. This avoids a VoidWallet being activated, requiringt the user to manually restart lnbits whenever CLN is restarted.
This commit is contained in:
@@ -585,6 +585,12 @@ if [ "$1" = "prestart" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CLIGHTNING_RPC=$(grep '^CLIGHTNING_RPC=' ${lnbitsConfig} | cut -d'=' -f2-)
|
||||||
|
while ! lightning-cli --rpc-file=${CLIGHTNING_RPC} getinfo &> /dev/null; do
|
||||||
|
echo "Waiting for CLN RPC socket to become available..."
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
echo "# everything looks OK for lnbits config on CLN on ${LNBitsChain}net"
|
echo "# everything looks OK for lnbits config on CLN on ${LNBitsChain}net"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user