File: icinga-cgi.prerm

package info (click to toggle)
icinga 1.0.2-2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 33,952 kB
  • ctags: 13,294
  • sloc: xml: 154,821; ansic: 99,198; sh: 14,585; sql: 5,852; php: 5,126; perl: 2,838; makefile: 1,268
file content (25 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh -e

. /usr/share/icinga/debian/httpd.webapps-common

apacheconf="/etc/icinga/apache2.conf"

if [ -f $apacheconf ]; then
  case "$1" in
    remove)
	# find the configured servers
	configured_servers=`wc_httpd_apache_configured $apacheconf icinga`
	if [ "$configured_servers" ]; then
		# deconfigure them
		wc_httpd_apache_uninclude $apacheconf icinga $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#