mynode/rootfs/standard/etc/systemd/system/sphinxrelay.service
2021-02-13 00:07:49 -06:00

28 lines
508 B
Desktop File

# 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
WorkingDirectory=/opt/mynode/sphinxrelay
ExecStart=npm run prod
User=bitcoin
Group=bitcoin
Type=simple
KillMode=control-group
TimeoutSec=240
Restart=always
RestartSec=60
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=sphinxrelay
[Install]
WantedBy=multi-user.target