ctdb-tests: Create 41.httpd.sh
[metze/samba/wip.git] / ctdb / tests / eventscripts / scripts / 41.httpd.sh
1 setup_httpd ()
2 {
3         debug "Setting up HTTPD environment: service $1, not managed by CTDB"
4
5         if [ "$1" != "down" ] ; then
6                 for _service_name in "apache2" "httpd" ; do
7                         service "$_service_name" start
8                 done
9         else
10                 for _service_name in "apache2" "httpd" ; do
11                         service "$_service_name" force-stopped
12                 done
13         fi
14
15         export CTDB_MANAGES_HTTPD=""
16 }