prerm is in mldonkey-server 3.1.5-3build2.
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 | #!/bin/sh
set -e
# Workaround bug in previous versions of the init.d script (--oknodo was
# missing), see: #378934.
init_error ()
{
echo "Retrying to stop daemon with oknodo."
start-stop-daemon --stop --oknodo --pidfile /var/run/mldonkey/mlnet.pid
}
# Automatically added by dh_installinit
if [ -x "/etc/init.d/mldonkey-server" ] || [ -e "/etc/init/mldonkey-server.conf" ]; then
invoke-rc.d mldonkey-server stop || init_error
fi
# End automatically added section
|