src.nth.io/

summaryrefslogtreecommitdiff
path: root/lnd/templates/lnd.service.j2
diff options
context:
space:
mode:
Diffstat (limited to 'lnd/templates/lnd.service.j2')
-rw-r--r--lnd/templates/lnd.service.j210
1 files changed, 10 insertions, 0 deletions
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