File: icinga-core.prerm

package info (click to toggle)
icinga 1.11.6-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 40,100 kB
  • sloc: ansic: 108,534; sql: 9,538; sh: 5,337; perl: 3,358; makefile: 1,243
file content (16 lines) | stat: -rw-r--r-- 483 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

# we attempt to stop icinga twice, once in icinga-common's prerm
# and once here.  otherwise, if icinga+icinga-common are being purged,
# the /usr/sbin/icinga binary could disappear before icinga-common's
# prerm script runs, which would prevent it from being able to stop
# the binary.
if [ -x "/etc/init.d/icinga" ]; then
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d icinga stop || true
	else
		/etc/init.d/icinga stop || true
	fi
fi

#DEBHELPER#