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

29 lines
556 B
SYSTEMD
Raw Normal View History

2021-02-13 06:07:49 +00:00
# sphinxrelay service
# /etc/systemd/system/sphinxrelay.service
[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
ExecStartPre=+/usr/bin/mynode_pre_sphinxrelay.sh
2021-02-13 06:07:49 +00:00
WorkingDirectory=/opt/mynode/sphinxrelay
ExecStart=npm run prod
User=bitcoin
Group=bitcoin
Type=simple
KillMode=control-group
2021-02-13 21:33:12 +00:00
TimeoutSec=60
Restart=always
2021-02-13 21:33:12 +00:00
RestartSec=30
StandardOutput=syslog
StandardError=syslog
2021-02-13 06:07:49 +00:00
SyslogIdentifier=sphinxrelay
[Install]
WantedBy=multi-user.target