2019-06-15 23:02:44 +00:00
|
|
|
# lnd service
|
|
|
|
# /etc/systemd/system/lnd.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=LND Lightning Daemon
|
|
|
|
Wants=bitcoind.service
|
|
|
|
After=bitcoind.service
|
|
|
|
|
|
|
|
[Service]
|
2020-04-23 02:59:37 +00:00
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
2019-06-15 23:02:44 +00:00
|
|
|
ExecStartPre=/usr/bin/pre_lnd.sh
|
|
|
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
2020-06-02 21:11:31 +00:00
|
|
|
ExecStart=/usr/local/bin/lnd
|
2019-09-02 22:04:45 +00:00
|
|
|
ExecStartPost=/bin/echo 'abc' > /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/poke_login
|
2019-06-15 23:02:44 +00:00
|
|
|
|
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=simple
|
2020-07-17 23:10:23 +00:00
|
|
|
KillMode=process
|
2019-06-15 23:02:44 +00:00
|
|
|
LimitNOFILE=128000
|
|
|
|
TimeoutSec=240
|
2019-08-13 03:38:47 +00:00
|
|
|
Nice=-1
|
2020-05-09 03:36:14 +00:00
|
|
|
IOAccounting=true
|
|
|
|
IOWeight=400
|
2019-06-15 23:02:44 +00:00
|
|
|
Restart=always
|
|
|
|
RestartSec=1
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=lnd
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|