mynode/rootfs/standard/etc/systemd/system/thunderhub.service
2022-02-09 22:29:25 -06:00

28 lines
533 B
Desktop File

# thunderhub service
# /etc/systemd/system/thunderhub.service
[Unit]
Description=Thunderhub
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
User=bitcoin
Group=bitcoin
Type=simple
KillMode=control-group
TimeoutSec=240
Restart=always
RestartSec=60
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=thunderhub
[Install]
WantedBy=multi-user.target