diff options
| author | Luke Hoersten <[email protected]> | 2022-09-05 16:03:32 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2022-09-05 16:03:32 -0500 |
| commit | d321b3c430d3a5b70d6264c73842b3ffda554cd9 (patch) | |
| tree | a0e0ed89aa2f0e0ebb9cacb437efea96498d1620 | |
| parent | 51ad016339f8188abe2b124e9cf0eb7528b92004 (diff) | |
Added REST api and cleaned up service unit file.
| -rw-r--r-- | lnd/templates/lnd.conf.j2 | 2 | ||||
| -rw-r--r-- | lnd/templates/lnd.service.j2 | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lnd/templates/lnd.conf.j2 b/lnd/templates/lnd.conf.j2 index 15e300a..63114fa 100644 --- a/lnd/templates/lnd.conf.j2 +++ b/lnd/templates/lnd.conf.j2 @@ -8,7 +8,9 @@ alias={{lnd_alias}} ; color=#3399FF tlsextradomain={{lnd_alias}} +listen=0.0.0.0:9735 rpclisten=0.0.0.0:10009 +restlisten=0.0.0.0:8080 [Bitcoin] bitcoin.mainnet=true diff --git a/lnd/templates/lnd.service.j2 b/lnd/templates/lnd.service.j2 index 39b8eb0..9e9805b 100644 --- a/lnd/templates/lnd.service.j2 +++ b/lnd/templates/lnd.service.j2 @@ -5,8 +5,18 @@ After={{lnd_bitcoin_node}}.service [Service] Type=notify + ExecStart=/usr/local/bin/lnd +ExecStop=/usr/local/bin/lncli stop + User={{lnd_user}} +Group={{lnd_user}} + +Restart=on-failure +RestartSec=60 + +TimeoutStartSec=1200 +TimeoutStopSec=3600 PrivateTmp=true ProtectSystem=full |
