mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 19:20:48 +02: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=""
|
lnd_error_full=""
|
||||||
fi
|
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
|
# check results if proof for online
|
||||||
else
|
else
|
||||||
lnd_ready="1"
|
lnd_ready="1"
|
||||||
|
Loading…
Reference in New Issue
Block a user