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:
parent
0d6d6d219f
commit
cb6b4fe67a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue