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.
This commit is contained in:
Kumi 2024-08-02 20:22:51 +02:00
parent 13a771214a
commit 8eebfe4c44
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 2 additions and 8 deletions

View file

@ -4,7 +4,6 @@ After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User=transfercoffee
@ -15,9 +14,7 @@ WorkingDirectory=/opt/transfer.coffee
ExecStart=/usr/bin/npm run tracker
Restart=always
RestartSec=86400s
LimitNOFILE=infinity
RestartSec=2s
[Install]
WantedBy=multi-user.target

View file

@ -4,7 +4,6 @@ After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
# Replace this with the user you want to run as
@ -19,9 +18,7 @@ ExecStart=/usr/bin/npm run start
EnvironmentFile = /opt/transfer.coffee/.env
Restart=always
RestartSec=86400s
LimitNOFILE=infinity
RestartSec=2s
[Install]
WantedBy=multi-user.target