prerm is in inn 1:1.7.2q-45build2.
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 | #!/bin/sh -e
# delete the pid file if INN is dead, or the init script may fail later
PIDFILE="/run/innd/innd.pid"
if [ -f $PIDFILE ]; then
INNPID=$(cat $PIDFILE)
kill -s 0 $INNPID 2> /dev/null || rm -f $PIDFILE
fi
# Stop the socket on removal so innd is not restarted via socket activation
if [ "$1" = remove -a -d /run/systemd/system/ ]; then
deb-systemd-invoke stop inn.socket > /dev/null || true
fi
# Automatically added by dh_installinit/10.10.5ubuntu1
if [ -x "/etc/init.d/inn" ] && [ "$1" = remove ]; then
invoke-rc.d inn stop || exit $?
fi
# End automatically added section
|