src.nth.io/

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2022-09-05 16:03:32 -0500
committerLuke Hoersten <[email protected]>2022-09-05 16:03:32 -0500
commitd321b3c430d3a5b70d6264c73842b3ffda554cd9 (patch)
treea0e0ed89aa2f0e0ebb9cacb437efea96498d1620
parent51ad016339f8188abe2b124e9cf0eb7528b92004 (diff)
Added REST api and cleaned up service unit file.
-rw-r--r--lnd/templates/lnd.conf.j22
-rw-r--r--lnd/templates/lnd.service.j210
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