26 lines
618 B
Plaintext
26 lines
618 B
Plaintext
|
#!/bin/sh -e
|
||
|
|
||
|
. /usr/share/nagios3/debian/httpd.webapps-common
|
||
|
|
||
|
apacheconf="/etc/nagios3/apache2.conf"
|
||
|
|
||
|
if [ -f $apacheconf ]; then
|
||
|
case "$1" in
|
||
|
remove)
|
||
|
# find the configured servers
|
||
|
configured_servers=`wc_httpd_apache_configured $apacheconf nagios3`
|
||
|
if [ "$configured_servers" ]; then
|
||
|
# deconfigure them
|
||
|
wc_httpd_apache_uninclude $apacheconf nagios3 $configured_servers
|
||
|
# reload the configured servers if they are running
|
||
|
running_servers="`wc_httpd_running $configured_servers`"
|
||
|
if [ "$running_servers" ]; then
|
||
|
wc_httpd_invoke "reload" $running_servers
|
||
|
fi
|
||
|
fi
|
||
|
;;
|
||
|
esac
|
||
|
fi
|
||
|
|
||
|
#DEBHELPER#
|