Package: proftpd
Version: 1.3.0-4
Severity: important

# cat /var/lib/dpkg/info/proftpd.prerm
#! /bin/sh

if [ -x "/usr/sbin/invoke-rc.d" ]; then
    invoke-rc.d proftpd stop
else 
        if [ -x "/etc/init.d/proftpd" ]; then
                /etc/init.d/proftpd stop
        fi
fi

If proftpd isn't running while removing the package removal fails.
The reason for the behaviour is that 'postinst abort-remove' is
executed after 'invoke-rc.d proftpd stop' which fails and you don't
take care of 'abort-remove' in the postinst script:

Removing proftpd ...
Stopping ftp server: proftpd failed!
invoke-rc.d: initscript proftpd, action "stop" failed.
dpkg: error processing proftpd (--remove):
 subprocess pre-removal script returned error exit status 1
Starting ftp server: proftpd.
[...]

Please adjust the prerm script to:

  invoke-rc.d proftpd stop || true
  /etc/init.d/proftpd stop || true

and handle abort-remove in the postinst script so removal of package
works also if proftpd isn't running. This should fix #363657 as well.

regards,
-mika-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to