lnd/templates/lnd.service.j2
changeset 0 474ccafc2349
child 4 9934a00b9e97
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lnd/templates/lnd.service.j2	Mon Apr 27 11:17:52 2020 -0500
@@ -0,0 +1,18 @@
+[Unit]
+Description=lnd
+Wants=btcd.service
+After=btcd.service
+
+[Service]
+ExecStart=/usr/local/bin/lnd
+User={{lnd_user}}
+Restart=on-failure
+
+PrivateTmp=true
+ProtectSystem=full
+NoNewPrivileges=true
+PrivateDevices=true
+MemoryDenyWriteExecute=true
+
+[Install]
+WantedBy=multi-user.target