This file is indexed.

postinst is in icinga-core 1.6.1-2.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/bin/sh -e

#if we stop icinga in icinga.prerm we should also start it here..
if [ -x "/etc/init.d/icinga" ]; then
	if ! /etc/init.d/icinga status >/dev/null; then

		if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
			invoke-rc.d icinga start || true
		else
			/etc/init.d/icinga start || true
		fi
	fi
fi