src.nth.io/

summaryrefslogtreecommitdiff
path: root/lnurld/server/templates/lnurld.service.j2
diff options
context:
space:
mode:
Diffstat (limited to 'lnurld/server/templates/lnurld.service.j2')
-rw-r--r--lnurld/server/templates/lnurld.service.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/lnurld/server/templates/lnurld.service.j2 b/lnurld/server/templates/lnurld.service.j2
new file mode 100644
index 0000000..499fdba
--- /dev/null
+++ b/lnurld/server/templates/lnurld.service.j2
@@ -0,0 +1,21 @@
+[Unit]
+Description=LNURL Daemon
+Wants=lnd.service
+After=lnd.service
+
+[Service]
+Environment="GIN_MODE=release"
+ExecStart=/usr/local/bin/lnurld
+
+User={{lnurld_user}}
+Group={{lnurld_user}}
+
+Type=simple
+KillMode=process
+LimitNOFILE=128000
+TimeoutSec=240
+Restart=always
+RestartSec=60
+
+[Install]
+WantedBy=multi-user.target