Skip to content

Instantly share code, notes, and snippets.

@mariodian
Created March 22, 2018 10:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mariodian/f766645710c1f6922c429f751869e744 to your computer and use it in GitHub Desktop.
Save mariodian/f766645710c1f6922c429f751869e744 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