Re: dpkg can't purge init script
On Wed, Aug 22, 2001 at 10:28:42PM +0100, Andrew Suffield wrote:
> On Wed, Aug 22, 2001 at 09:24:02PM +0200, Eric Van Buggenhaut wrote:
> > Sorry for cross-posting, I posted to the wrong list first.
> > I can't purge a package :
> Clearly the thing that is returning 1 lies in the debhelper prerm.
> > And the debhelper script :
> > [eric@curitibaPOTATO:~/arturo/superviser-server-1.0]$ more debian/prerm.debhelper
> > # Automatically added by dh_installdocs
> > if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/superviser-server ]; then
> > rm -f /usr/doc/superviser-server
> rm -f always returns 0, not that.
> > fi
> > # End automatically added section
> > # Automatically added by dh_installinit
> > /etc/init.d/superviser-server stop
> That's the only thing it could be. Your init.d script is failing and
> returning 1. It is bugged, fix it. Hint: --oknodo parameter to
> start-stop-daemon (look it up).
OK, --oknodo did the trick. Thanks.
I don't see the point why this option isn't shipped in the default file.
Eric VAN BUGGENHAUT