cccs: increment the wait time to restart cccs services when they fail to start

This commits sets 30s between restart attempt after a failure.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
This commit is contained in:
Tatiana Leon 2023-10-16 10:40:33 +02:00
parent 0d6d6d219f
commit cb6b4fe67a
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,8 @@ Description=CCCS get start demo
After=cccsd.service
BindsTo=cccsd.service
Upholds=cccsd.service
# Do not limit the number of restarting times
StartLimitIntervalSec=0
[Service]
Type=forking
@ -10,7 +12,9 @@ ExecStart=/etc/cccs-gs-demo start
ExecStop=/etc/cccs-gs-demo stop
# SIGTERM signal is a valid status value
SuccessExitStatus=143
# Restart the service every 30 seconds if it fails
Restart=on-failure
RestartSec=30s
[Install]
WantedBy=multi-user.target

View File

@ -1,13 +1,17 @@
[Unit]
Description=CCCS daemon
After=network.target
# Do not limit the number of restarting times
StartLimitIntervalSec=0
[Service]
Type=forking
ExecStart=/etc/cccsd start
ExecStop=/etc/cccsd stop
PIDFile=/run/cccsd.pid
# Restart the service every 30 seconds if it fails
Restart=on-failure
RestartSec=30s
[Install]
WantedBy=multi-user.target