On Fri, Apr 21, 2006 at 02:17:26PM +0200, Michael Prokop wrote:
> 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.
> 

That's a bit different, the init script should not fail at all on 'stop'
even when called multiple time: that's the ordinary (and previous) behavior 
for that script. Unfortunately the LSB moving in the recent package
introduced a different behavior... Thanks.

-- 
Francesco P. Lovergine


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

Reply via email to