transfer.coffee/contrib/systemd/transfercoffee-tracker.service
Kumi 8eebfe4c44
fix(systemd): correct RestartSec value to 2s
Adjusted the RestartSec value from 86400s to 2s in service files to ensure rapid recovery on failure. Removed redundant LimitNOFILE directive as it was unnecessary.
2024-08-02 20:22:51 +02:00

20 lines
356 B
Desktop File

[Unit]
Description=Transfer.coffee Tracker
After=syslog.target
After=network.target
[Service]
Type=simple
User=transfercoffee
Group=transfercoffee
# Replace /opt/transfer.coffee with where you cloned the repo to
WorkingDirectory=/opt/transfer.coffee
ExecStart=/usr/bin/npm run tracker
Restart=always
RestartSec=2s
[Install]
WantedBy=multi-user.target