Skip to content

Instantly share code, notes, and snippets.

@royalgarter
Forked from mariodian/lnd.service
Created May 23, 2019 13:53
Show Gist options
  • Save royalgarter/7b8eb3c4278b30d567f0e0091fcbc54f to your computer and use it in GitHub Desktop.
Save royalgarter/7b8eb3c4278b30d567f0e0091fcbc54f to your computer and use it in GitHub Desktop.
LND Systemd script
[Unit]
Description=LND Lightning Daemon
Requires=bitcoind.service
After=bitcoind.service
[Service]
ExecStart=/home/satoshi/go/bin/lnd
ExecStop=/home/satoshi/go/bin/lncli stop
PIDFile=/home/satoshi/.lnd/lnd.pid
User=satoshi
Group=satoshi
Type=simple
KillMode=process
TimeoutStartSec=60
TimeoutStopSec=60
Restart=always
RestartSec=60
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment