* Reduce the failure counts so that restart attempts happen sooner.
* Use service_start() and service_stop() for the restart.
ctdb_service_start() resets the failure count, which isn't very
useful in this context.
Signed-off-by: Martin Schwenke <martin@meltin.net>
else
ctdb_counter_incr
- ctdb_check_counter_equal 5 || {
+ ctdb_check_counter warn -eq 2 || {
echo "HTTPD is not running. Trying to restart HTTPD."
- ctdb_service_stop
- ctdb_service_start
+ service_stop
+ service_start
exit 0
}
- ctdb_check_counter_limit 10 quiet|| {
+ ctdb_check_counter warn -ge 5 || {
echo "HTTPD is not running. Trying to restart HTTPD."
- ctdb_service_stop
- ctdb_service_start
+ service_stop
+ service_start
exit 1
}
fi