1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00
Andrew Tridgell 3777346629 partial merge from ronnie
(This used to be ctdb commit fd316deb8a9e0545c8efa1bfc8ad83962b310405)
2008-01-29 11:39:06 +11:00

30 lines
428 B
Bash

#!/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