mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
59327234ac
(This used to be ctdb commit 16cba208b041c2bd8dbf801af89dcbcde486abf2)
29 lines
412 B
Bash
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
|
|
|