2020-07-17 06:09:38 +00:00
|
|
|
# thunderhub service
|
|
|
|
# /etc/systemd/system/thunderhub.service
|
2020-07-14 04:50:54 +00:00
|
|
|
|
|
|
|
[Unit]
|
2020-07-17 06:09:38 +00:00
|
|
|
Description=Thunderhub
|
2020-07-14 04:50:54 +00:00
|
|
|
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
|
2020-08-07 01:06:18 +00:00
|
|
|
ExecStart=/usr/bin/npm run start -- -p 3030
|
2020-07-14 04:50:54 +00:00
|
|
|
|
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=simple
|
2020-07-17 23:10:23 +00:00
|
|
|
KillMode=control-group
|
2020-07-14 04:50:54 +00:00
|
|
|
TimeoutSec=240
|
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=thunderhub
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|