This file is indexed.

prerm is in courier-mta 0.78.0-2ubuntu2.

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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh

set -e

if [ "$1" = "upgrade" -o "$1" = "remove" ]; then
    for binary in lockmail preline; do
	update-alternatives --remove $binary /usr/bin/$binary.courier
    done
fi

if [ ! -f /etc/courier/module.fax ]; then
    # fax module configuration file is missing, courier
    # will not shutdown properly, therefore we are using
    # this kludge
    start-stop-daemon --stop --oknodo --exec /usr/lib/courier/courier/courierd 
fi

# Automatically added by dh_installinit/11.1.3ubuntu1
if [ -x "/etc/init.d/courier-msa" ]; then
	invoke-rc.d courier-msa stop || exit 1
fi
# End automatically added section
# Automatically added by dh_installinit/11.1.3ubuntu1
if [ -x "/etc/init.d/courier-mta-ssl" ]; then
	invoke-rc.d courier-mta-ssl stop || exit 1
fi
# End automatically added section
# Automatically added by dh_installinit/11.1.3ubuntu1
if [ -x "/etc/init.d/courier-mta" ]; then
	invoke-rc.d courier-mta stop || exit 1
fi
# End automatically added section
# Automatically added by dh_installinit/11.1.3ubuntu1
if [ -x "/etc/init.d/courierfilter" ]; then
	invoke-rc.d courierfilter stop || exit 1
fi
# End automatically added section
# Automatically added by dh_installinit/11.1.3ubuntu1
if [ -x "/etc/init.d/courier" ]; then
	invoke-rc.d courier stop || exit 1
fi
# End automatically added section


exit 0