Retry LND login every 10 minutes to prevent stuck LND
This commit is contained in:
parent
9d3bae8867
commit
2de335a227
|
@ -25,7 +25,7 @@ while true; do
|
|||
/usr/bin/expect /usr/bin/unlock_lnd.tcl
|
||||
if [ $? -eq 0 ]; then
|
||||
# Unlocked! Verify unlocked every time LND files change
|
||||
inotifywait -r -e modify -e create -e delete /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/ /mnt/hdd/mynode/lnd/tls.cert
|
||||
inotifywait -t 600 -r -e modify -e create -e delete /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/ /mnt/hdd/mynode/lnd/tls.cert
|
||||
else
|
||||
# Failed, try again in 15 seconds
|
||||
/bin/sleep 15s
|
||||
|
|
Loading…
Reference in New Issue
Block a user