1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00
Ronnie Sahlberg 59327234ac add eventscript for http
(This used to be ctdb commit 16cba208b041c2bd8dbf801af89dcbcde486abf2)
2008-01-11 10:44:16 +11:00

29 lines
412 B
Bash

#!/bin/sh
# event strict to manage httpd in a cluster environment
. $CTDB_BASE/functions
loadconfig ctdb
[ "$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