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:
parent
13a771214a
commit
8eebfe4c44
2 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue