mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-17 13:21:44 +01:00
#4164 use systemd status
This commit is contained in:
parent
efc7c63cae
commit
863c3561df
@ -84,6 +84,14 @@ if [ "$2" = "status" ]; then
|
||||
lnd_error_full=""
|
||||
fi
|
||||
|
||||
# check if wallet is locked by systemd status (backup)
|
||||
if [ "${lnd_locked}" == "0" ]; then
|
||||
walletLockedCount=$(systemctl status ${netprefix}lnd 2>/dev/null | grep -c "Wallet locked")
|
||||
if [ ${walletLockedCount} -gt 0 ]; then
|
||||
lnd_locked="1"
|
||||
fi
|
||||
fi
|
||||
|
||||
# check results if proof for online
|
||||
else
|
||||
lnd_ready="1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user