mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-16 10:22:50 +00:00
29 lines
557 B
SYSTEMD
29 lines
557 B
SYSTEMD
|
# lndhub service
|
||
|
# /etc/systemd/system/lndhub.service
|
||
|
|
||
|
[Unit]
|
||
|
Description=LND Hub
|
||
|
Wants=lnd.service
|
||
|
After=lnd.service
|
||
|
|
||
|
[Service]
|
||
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
||
|
ExecStartPre=/usr/bin/wait_on_lnd.sh
|
||
|
Environment=PORT=3030
|
||
|
WorkingDirectory=/opt/mynode/thunderhub
|
||
|
ExecStart=/usr/bin/npm run start:compatible -- -p 3030
|
||
|
|
||
|
User=bitcoin
|
||
|
Group=bitcoin
|
||
|
Type=simple
|
||
|
KillMode=process
|
||
|
LimitNOFILE=128000
|
||
|
TimeoutSec=240
|
||
|
Restart=always
|
||
|
RestartSec=60
|
||
|
StandardOutput=syslog
|
||
|
StandardError=syslog
|
||
|
SyslogIdentifier=thunderhub
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|