This file is indexed.

prerm is in pcp 4.0.1-1.

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 -e

if which invoke-rc.d >/dev/null 2>&1; then
    invoke-rc.d pmproxy stop
    invoke-rc.d pmie stop
    if [ -f /etc/init.d/pmcd ]; then
	# PCP 4.0 style
	invoke-rc.d pmlogger stop
	invoke-rc.d pmcd stop
    else
	# PCP pre-4.0 style
	invoke-rc.d pcp stop
    fi
else
    /etc/init.d/pmproxy stop
    /etc/init.d/pmie stop
    if [ -f /etc/init.d/pmcd ]; then
	# PCP 4.0 style
	/etc/init.d/pmlogger stop
	/etc/init.d/pmcd stop
    else
	# PCP pre-4.0 style
	/etc/init.d/pcp stop
    fi
fi
rm -f /var/lib/pcp/pmns/.NeedRebuild