mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
Eventscripts: improvements to 41.httpd.
* 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> (This used to be ctdb commit 01776b9f29af9ad5c8534649ece1bd100e450434)
This commit is contained in:
parent
2a14f91722
commit
1ea3616dcc
@ -61,16 +61,16 @@ case "$1" in
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user