lnd/templates/lnd.service.j2
author Luke Hoersten <luke@hoersten.org>
Sun, 03 Aug 2025 12:51:13 -0500
changeset 41 85750c5b0661
parent 25 c2bab619cfb5
permissions -rw-r--r--
Lots of performance updates and added some flags for reindexing etc. Also added zram comporession.

[Unit]
Description=lnd
Wants={{lnd_bitcoin_node}}.service
After={{lnd_bitcoin_node}}.service

[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
NoNewPrivileges=true
PrivateDevices=true
MemoryDenyWriteExecute=true

[Install]
WantedBy=multi-user.target