This file is indexed.

prerm is in tomcat8 8.0.32-1ubuntu1.

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
#!/bin/sh
set -e

case "$1" in
    remove)
	[ -f /etc/default/tomcat8 ] && . /etc/default/tomcat8
	[ -z "$TOMCAT8_USER" ] && TOMCAT8_USER="tomcat8"
	# Remove auth for tomcat8 to open privileged ports via authbind.
	TOMCAT_UID="`id -u $TOMCAT8_USER`"
	if [ -f "/etc/authbind/byuid/$TOMCAT_UID" ]; then
		rm -f /etc/authbind/byuid/$TOMCAT_UID
	fi
    ;;
esac

# Automatically added by dh_installinit
if [ -x "/etc/init.d/tomcat8" ] || [ -e "/etc/init/tomcat8.conf" ]; then
	invoke-rc.d tomcat8 stop || exit $?
fi
# End automatically added section