mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 23:14:04 +00:00
30 lines
610 B
Desktop File
30 lines
610 B
Desktop File
# lnd service
|
|
# /etc/systemd/system/lnd.service
|
|
|
|
[Unit]
|
|
Description=LND Lightning Daemon
|
|
Wants=bitcoind.service
|
|
After=bitcoind.service
|
|
|
|
[Service]
|
|
ExecStartPre=/usr/bin/pre_lnd.sh
|
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
|
ExecStart=/usr/local/bin/lnd --caches.channel-cache-size=35000
|
|
ExecStartPost=/bin/echo 'abc' > /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/poke_login
|
|
|
|
User=bitcoin
|
|
Group=bitcoin
|
|
Type=simple
|
|
KillMode=control-group
|
|
LimitNOFILE=128000
|
|
TimeoutSec=240
|
|
Nice=-1
|
|
Restart=always
|
|
RestartSec=1
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=lnd
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|