Retry LND login every 10 minutes to prevent stuck LND

This commit is contained in:
Taylor Helsper 2020-01-23 21:43:50 -06:00
parent 9d3bae8867
commit 2de335a227

View File

@ -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