~ubuntu-branches/ubuntu/saucy/nagios3/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/nagios3-common.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2009-08-16 14:14:23 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090816141423-efjzq1r3jekwd7l7
Tags: 3.2.0-1
* New upstream release (Closes: #542957)
  - Timeperiods should work as expected now (Closes: #539882)
  - Recovery notifications fixed (Closes: #543657)
* Update standards version 
  - Add README.source
* Manpage errors fixed (Closes: #540554)
* Split up the webfrontend into its own package (Closes: #479338, #485466)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
 
3
 
. /usr/share/nagios3/debian/httpd.webapps-common
4
 
 
5
 
apacheconf="/etc/nagios3/apache2.conf"
6
 
 
7
 
if [ -f $apacheconf ]; then
8
 
  case "$1" in
9
 
    remove)
10
 
        # find the configured servers
11
 
        configured_servers=`wc_httpd_apache_configured $apacheconf nagios3`
12
 
        if [ "$configured_servers" ]; then
13
 
                # deconfigure them
14
 
                wc_httpd_apache_uninclude $apacheconf nagios3 $configured_servers
15
 
                # reload the configured servers if they are running 
16
 
                running_servers="`wc_httpd_running $configured_servers`"
17
 
                if [ "$running_servers" ]; then
18
 
                        wc_httpd_invoke "reload" $running_servers
19
 
                fi
20
 
        fi
21
 
      ;;
22
 
  esac
23
 
fi
24
 
 
25
 
#DEBHELPER#