mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-23 22:47:03 +01:00
#1262 detect if LND is not active yet
This commit is contained in:
parent
65139c144b
commit
54386b0e06
1 changed files with 9 additions and 0 deletions
|
@ -77,6 +77,15 @@ fi
|
|||
### REFRESH
|
||||
|
||||
if [ "$1" = "refresh" ]; then
|
||||
|
||||
echo "# checking if LND is running"
|
||||
lndInactive=$(sudo systemctl is-active lnd | grep -c "inactive")
|
||||
if [ ${lndInactive} -eq 1 ]; then
|
||||
echo "# FAIL: lnd.tlscert.sh refresh"
|
||||
echo "error='LND systemd service not activated'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "# making sure services are not running"
|
||||
sudo systemctl stop lnd 2>/dev/null
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue