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
|
After=cccsd.service
|
||||||
BindsTo=cccsd.service
|
BindsTo=cccsd.service
|
||||||
Upholds=cccsd.service
|
Upholds=cccsd.service
|
||||||
|
# Do not limit the number of restarting times
|
||||||
|
StartLimitIntervalSec=0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
|
@ -10,7 +12,9 @@ ExecStart=/etc/cccs-gs-demo start
|
||||||
ExecStop=/etc/cccs-gs-demo stop
|
ExecStop=/etc/cccs-gs-demo stop
|
||||||
# SIGTERM signal is a valid status value
|
# SIGTERM signal is a valid status value
|
||||||
SuccessExitStatus=143
|
SuccessExitStatus=143
|
||||||
|
# Restart the service every 30 seconds if it fails
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
RestartSec=30s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,17 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=CCCS daemon
|
Description=CCCS daemon
|
||||||
After=network.target
|
After=network.target
|
||||||
|
# Do not limit the number of restarting times
|
||||||
|
StartLimitIntervalSec=0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
ExecStart=/etc/cccsd start
|
ExecStart=/etc/cccsd start
|
||||||
ExecStop=/etc/cccsd stop
|
ExecStop=/etc/cccsd stop
|
||||||
PIDFile=/run/cccsd.pid
|
PIDFile=/run/cccsd.pid
|
||||||
|
# Restart the service every 30 seconds if it fails
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
RestartSec=30s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue