mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
3777346629
(This used to be ctdb commit fd316deb8a9e0545c8efa1bfc8ad83962b310405)
30 lines
428 B
Bash
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
|
|
|