prerm is in hylafax-server 3:6.0.6-8.
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 | #! /bin/sh -e
if [ -x /etc/init.d/hylafax -a -e /var/spool/hylafax/etc/setup.cache -a \
$(ps --no-headers -Chfaxd,faxq,faxgetty | wc -l) -gt 0 ]
then
invoke-rc.d hylafax stop
fi
exit 0
|