lnd/templates/lnd.service.j2
changeset 25 c2bab619cfb5
parent 24 a216f4e9b000
--- a/lnd/templates/lnd.service.j2	Mon Aug 08 16:11:16 2022 -0500
+++ b/lnd/templates/lnd.service.j2	Mon Sep 05 16:03:32 2022 -0500
@@ -5,8 +5,18 @@
 
 [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