# RaspiBlitz: systemd unit for lnd [Unit] Description=LND Lightning Daemon Wants=bitcoind.service After=bitcoind.service # for use with sendmail alert #OnFailure=systemd-sendmail@%n [Service] EnvironmentFile= ExecStart=/usr/local/bin/lnd --externalip=${publicIP} PIDFile=/home/bitcoin/.lnd/lnd.pid User=bitcoin Group=bitcoin LimitNOFILE=128000 Type=simple KillMode=process TimeoutSec=180 Restart=always RestartSec=60 [Install] WantedBy=multi-user.target