~ubuntu-branches/ubuntu/trusty/nagios3/trusty

« back to all changes in this revision

Viewing changes to debian/nagios3-core.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
# we attempt to stop nagios3 twice, once in nagios3-common's prerm
 
4
# and once here.  otherwise, if nagios3+nagios3-common are being purged,
 
5
# the /usr/sbin/nagios3 binary could disappear before nagios3-common's
 
6
# prerm script runs, which would prevent it from being able to stop
 
7
# the binary.
 
8
if [ -x "/etc/init.d/nagios3" ]; then
 
9
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
 
10
                invoke-rc.d nagios3 stop || true
 
11
        else
 
12
                /etc/init.d/nagios3 stop || true
 
13
        fi
 
14
fi
 
15
 
 
16
#DEBHELPER#