src.nth.io/

summaryrefslogtreecommitdiff
path: root/lnd/templates
diff options
context:
space:
mode:
Diffstat (limited to 'lnd/templates')
-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