mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
32 lines
No EOL
650 B
Desktop File
32 lines
No EOL
650 B
Desktop File
# 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]
|
|
ExecStartPre=-/home/admin/config.scripts/lnd.check.sh prestart mainnet
|
|
ExecStart=/usr/local/bin/lnd --configfile=/home/bitcoin/.lnd/lnd.conf
|
|
PIDFile=/home/bitcoin/.lnd/lnd.pid
|
|
User=bitcoin
|
|
Group=bitcoin
|
|
LimitNOFILE=128000
|
|
Type=simple
|
|
TimeoutSec=180
|
|
Restart=always
|
|
RestartSec=60
|
|
StandardOutput=null
|
|
StandardError=journal
|
|
|
|
# Hardening measures
|
|
PrivateTmp=true
|
|
ProtectSystem=full
|
|
NoNewPrivileges=true
|
|
PrivateDevices=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |