You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
In file service_systemd_linux.go Line 319, you can see that the RestartSec Param is hard-coded to 120s.
This is an issue when you want your service to be set at a custom restart interval.
I have updated the code locally, and tested it out too, I will put the file it created here, and the PR which updates the code too.
[Unit]
Description=ZT-Connector
ConditionFileIsExecutable=connector
[Service]
StartLimitInterval=5
StartLimitBurst=10
ExecStart=connector "run"
Restart=on-failure
RestartSec=10
EnvironmentFile=-/etc/sysconfig/zt-connector
[Install]
WantedBy=multi-user.target
`
Config Provided to make this:
`
return &k_service.Config{
Name: connector.Name,
DisplayName: connector.DisplayName,
Description: connector.Description,
Option: k_service.KeyValue{
"Restart": "on-failure", // for linux
"RestartSec": "10",
},
}
Hi,
In file service_systemd_linux.go Line 319, you can see that the RestartSec Param is hard-coded to 120s.
This is an issue when you want your service to be set at a custom restart interval.
I have updated the code locally, and tested it out too, I will put the file it created here, and the PR which updates the code too.
heres the PR
#374
The text was updated successfully, but these errors were encountered: