prerm is in xinetd 1:2.3.14-7ubuntu4.
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 | #!/bin/sh -e
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d xinetd stop
elif [ -x /etc/init.d/xinetd ]; then
/etc/init.d/xinetd stop
fi
if [ "$1" = "remove" ]; then
echo "Note: all inetd services have been terminated."
fi
# Automatically added by dh_installinit
if [ -e "/etc/init/xinetd.conf" ] && [ "$1" = remove ]; then
# stop fails if not running
stop xinetd || :
fi
# End automatically added section
|