2021-02-13 06:07:49 +00:00
|
|
|
# sphinxrelay service
|
|
|
|
# /etc/systemd/system/sphinxrelay.service
|
2021-02-10 05:37:43 +00:00
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Sphinx Relay
|
|
|
|
Wants=lnd.service
|
|
|
|
After=lnd.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
|
|
|
ExecStartPre=/usr/bin/wait_on_lnd.sh
|
2021-03-28 02:39:14 +00:00
|
|
|
ExecStartPre=+/usr/bin/mynode_pre_sphinxrelay.sh
|
2021-02-13 06:07:49 +00:00
|
|
|
WorkingDirectory=/opt/mynode/sphinxrelay
|
2021-02-10 05:37:43 +00:00
|
|
|
ExecStart=npm run prod
|
|
|
|
|
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=simple
|
|
|
|
KillMode=control-group
|
2021-02-13 21:33:12 +00:00
|
|
|
TimeoutSec=60
|
2021-02-10 05:37:43 +00:00
|
|
|
Restart=always
|
2021-02-13 21:33:12 +00:00
|
|
|
RestartSec=30
|
2021-02-10 05:37:43 +00:00
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
2021-02-13 06:07:49 +00:00
|
|
|
SyslogIdentifier=sphinxrelay
|
2021-02-10 05:37:43 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|