mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 18:02:49 +00:00
34 lines
693 B
Desktop File
34 lines
693 B
Desktop File
# lnd service
|
|
# /etc/systemd/system/lnd.service
|
|
|
|
[Unit]
|
|
Description=LND Lightning Daemon
|
|
Wants=bitcoin.service
|
|
After=bitcoin.service
|
|
|
|
[Service]
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
|
ExecStartPre=/usr/bin/pre_lnd.sh
|
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
|
ExecStartPre=+/usr/bin/mynode_gen_lnd_config.sh
|
|
ExecStart=/usr/local/bin/lnd
|
|
ExecStartPost=/bin/echo 'abc' > /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/poke_login
|
|
|
|
User=bitcoin
|
|
Group=bitcoin
|
|
Type=simple
|
|
KillMode=process
|
|
LimitNOFILE=128000
|
|
TimeoutSec=240
|
|
Nice=-1
|
|
IOAccounting=true
|
|
IOWeight=400
|
|
Restart=always
|
|
RestartSec=1
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=lnd
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|