Added REST api and cleaned up service unit file.
authorLuke Hoersten <luke@hoersten.org>
Mon, 05 Sep 2022 16:03:32 -0500
changeset 25 c2bab619cfb5
parent 24 a216f4e9b000
child 26 3b8585e567fe
Added REST api and cleaned up service unit file.
lnd/templates/lnd.conf.j2
lnd/templates/lnd.service.j2
--- a/lnd/templates/lnd.conf.j2	Mon Aug 08 16:11:16 2022 -0500
+++ b/lnd/templates/lnd.conf.j2	Mon Sep 05 16:03:32 2022 -0500
@@ -8,7 +8,9 @@
 ; 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
--- 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