~ubuntu-branches/ubuntu/utopic/nagios-plugins-rabbitmq/utopic

« back to all changes in this revision

Viewing changes to debian/postrm

  • Committer: Package Import Robot
  • Author(s): Cyril Bouthors
  • Date: 2014-07-16 15:48:54 UTC
  • Revision ID: package-import@ubuntu.com-20140716154854-ha1vdov1oz10on3t
Tags: 1:1.2.0-2
debian/postrm: reload nagios-nrpe-server only if needed (closes:
#749232).

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
set -e
19
19
 
20
20
# Reload NRPE if needed
21
 
if which invoke-rc.d >/dev/null 2>&1
 
21
if [ -f /etc/init.d/nagios-nrpe-server ]
22
22
then
23
 
    invoke-rc.d nagios-nrpe-server reload
24
 
else
25
 
    /etc/init.d/nagios-nrpe-server reload
 
23
    if which invoke-rc.d >/dev/null 2>&1 
 
24
    then
 
25
        invoke-rc.d nagios-nrpe-server reload
 
26
    else
 
27
        /etc/init.d/nagios-nrpe-server reload
 
28
    fi
26
29
fi
27
30
 
28
31
#DEBHELPER#