prerm is in argus-server 1:2.0.6.fixes.1-16.3.
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 | #!/bin/sh
set -e
INTERFACES=`ifconfig | awk '{print $1}' | grep ppp || true`
case "$1" in
remove|upgrade|remove-in-favour|deconfigure-in-favour)
#
# Stop the daemon
#
if which invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d argus-server stop > /dev/null 2>&1 || true
else
/etc/init.d/argus-server stop > /dev/null 2>&1 || true
fi
for i in $INTERFACES; do
PPP_IFACE=$i /etc/ppp/ip-down.d/argus-server || true
done
[ -f /usr/sbin/argus ] && rm -f /usr/sbin/argus
;;
failed-upgrade)
;;
esac
exit 0
|