File: icinga-core.prerm

package info (click to toggle)
icinga 1.14.2+ds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 49,264 kB
  • sloc: ansic: 108,564; sql: 9,656; sh: 4,945; perl: 3,439; makefile: 1,213; php: 581; xml: 104
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#