mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
64b6df09a0
change flags for 41.httpd (This used to be ctdb commit 88527a4a5423014f9911fa6061632215e153eb7e)
30 lines
428 B
Bash
Executable File
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
|
|
|