1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/config/events.d/41.httpd
Ronnie Sahlberg 64b6df09a0 update ctdb version
change flags for 41.httpd

(This used to be ctdb commit 88527a4a5423014f9911fa6061632215e153eb7e)
2008-02-06 14:00:04 +11:00

30 lines
428 B
Bash
Executable File

#!/bin/sh
# event strict to manage httpd in a cluster environment
. $CTDB_BASE/functions
loadconfig ctdb
loadconfig http
[ "$CTDB_MANAGES_HTTPD" = "yes" ] || exit 0
cmd="$1"
shift
case $cmd in
startup)
service httpd stop > /dev/null 2>&1
service httpd start
;;
shutdown)
service httpd stop
;;
monitor)
ctdb_check_tcp_ports "http" 80
;;
esac
exit 0