mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 18:07:45 +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
|
||||
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"
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user