File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ docker pull lncm/lnd-unlock
2626- LNDHOSTNAME (default: lnd) : This is the hostname for the lnd instance. Can be an IP
2727- HOSTIPPORT (default: 10.254.2.3:8080) : This is the IP and port for the LND rest interface.
2828- NETWORK (default: mainnet) : This is the network that LND uses and how to find the correct macaroon file
29+ - SLEEPTIME (default: 30) : This is how often we will check to see if its unlocked. There is a default value so you do not need to set it.
2930
3031## Quick run
3132
Original file line number Diff line number Diff line change 1111# Trap signal SIGINT - Explicitly define it
1212trap exit INT
1313
14+ # Check every 30 seconds by default (or if specified)
15+ SLEEPTIME=" ${SLEEPTIME:- 30} " # Default sleep: 30
16+
1417# If LNDHOSTNAME not set then LNDHOSTNAME=lnd
1518if [ -z $LNDHOSTNAME ]; then
1619 LNDHOSTNAME=lnd
@@ -87,5 +90,5 @@ while true; do
8790 >&2 echo " password file doesn't exist"
8891 fi
8992
90- sleep 30
93+ sleep " $SLEEPTIME "
9194done
You can’t perform that action at this time.
0 commit comments