# HG changeset patch # User Luke Hoersten # Date 1662411812 18000 # Node ID c2bab619cfb5d387f684be9093dcfbc8b8dd70a9 # Parent a216f4e9b00089c62a1cceb1bfdb13f64e9ea9c8 Added REST api and cleaned up service unit file. diff -r a216f4e9b000 -r c2bab619cfb5 lnd/templates/lnd.conf.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 diff -r a216f4e9b000 -r c2bab619cfb5 lnd/templates/lnd.service.j2 --- 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