Added REST api and cleaned up service unit file.
--- 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