This file is indexed.

postinst is in ps-watcher 1.08-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
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

set -e

if [ "$1" = "configure" ] && [ "$2" ] && dpkg --compare-versions "$2" lt "1.08-1"; then
    if [ -e /etc/rc2.d/S40ps-watcher ] && \
       [ -e /etc/rc3.d/S40ps-watcher ] && \
       [ -e /etc/rc4.d/S40ps-watcher ] && \
       [ -e /etc/rc5.d/S40ps-watcher ] && \
       [ -e /etc/rc0.d/K40ps-watcher ] && \
       [ -e /etc/rc1.d/K40ps-watcher ] && \
       [ -e /etc/rc6.d/K40ps-watcher ]; then
        update-rc.d -f ps-watcher remove >/dev/null
    fi
fi

# Automatically added by dh_installinit
if [ -x "/etc/init.d/ps-watcher" ]; then
	update-rc.d ps-watcher defaults 99 01 >/dev/null
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d ps-watcher start || exit $?
	else
		/etc/init.d/ps-watcher start || exit $?
	fi
fi
# End automatically added section