mynode/rootfs/standard/etc/systemd/system/litd.service

31 lines
580 B
SYSTEMD
Raw Normal View History

2021-03-31 03:09:55 +00:00
# litd service
# /etc/systemd/system/litd.service
[Unit]
Description=Lightning Terminal
Wants=bitcoind.service lnd.service
After=bitcoind.service lnd.service
[Service]
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
ExecStart=/usr/local/bin/litd --lit-dir=/mnt/hdd/mynode/lit
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=litd
[Install]
WantedBy=multi-user.target