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

29 lines
546 B
SYSTEMD
Raw Normal View History

2019-06-15 23:02:44 +00:00
# lndhub service
# /etc/systemd/system/lndhub.service
[Unit]
Description=LND Hub
Wants=lnd.service
After=lnd.service
[Service]
2020-04-23 02:59:37 +00:00
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/is_mainnet.sh
2019-06-15 23:02:44 +00:00
ExecStartPre=/usr/bin/wait_on_lnd.sh
Environment=PORT=3000
WorkingDirectory=/opt/mynode/LndHub
ExecStart=/usr/bin/npm start
User=bitcoin
Group=bitcoin
Type=simple
KillMode=control-group
2019-06-15 23:02:44 +00:00
TimeoutSec=240
Restart=always
RestartSec=60
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=lndhub
[Install]
WantedBy=multi-user.target