Re: dpkg can't purge init script

2001-08-23 Thread Eric Van Buggenhaut
On Thu, Aug 23, 2001 at 12:05:01AM +0100, Julian Gilbey wrote: On Wed, Aug 22, 2001 at 07:44:29PM +0200, Eric Van Buggenhaut wrote: I can't purge a package : curitiba_POTATO:/# dpkg --purge superviser-server (Reading database ... 9401 files and directories currently installed.)

Re: dpkg can't purge init script

2001-08-23 Thread Eric Van Buggenhaut
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

Re: dpkg can't purge init script

2001-08-23 Thread Julian Gilbey
On Thu, Aug 23, 2001 at 11:35:56AM +0200, Eric Van Buggenhaut wrote: *) echo prerm called with unknown argument \`$1' 2 exit 0 This should probably be exit 1. Well, my script is the exact copy of the skeleton found in

Re: dpkg can't purge init script

2001-08-23 Thread Julian Gilbey
On Fri, Aug 24, 2001 at 12:35:11AM +0200, Eric Van Buggenhaut wrote: 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

Re: dpkg can't purge init script

2001-08-23 Thread Eric Van Buggenhaut
On Thu, Aug 23, 2001 at 12:05:01AM +0100, Julian Gilbey wrote: On Wed, Aug 22, 2001 at 07:44:29PM +0200, Eric Van Buggenhaut wrote: I can't purge a package : curitiba_POTATO:/# dpkg --purge superviser-server (Reading database ... 9401 files and directories currently installed.)

Re: dpkg can't purge init script

2001-08-23 Thread Eric Van Buggenhaut
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

Re: dpkg can't purge init script

2001-08-23 Thread Julian Gilbey
On Thu, Aug 23, 2001 at 11:35:56AM +0200, Eric Van Buggenhaut wrote: *) echo prerm called with unknown argument \`$1' 2 exit 0 This should probably be exit 1. Well, my script is the exact copy of the skeleton found in

Re: dpkg can't purge init script

2001-08-23 Thread Julian Gilbey
On Fri, Aug 24, 2001 at 12:35:11AM +0200, Eric Van Buggenhaut wrote: 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

dpkg can't purge init script

2001-08-22 Thread Eric Van Buggenhaut
Sorry for cross-posting, I posted to the wrong list first. I can't purge a package : curitiba_POTATO:/# dpkg --purge superviser-server (Reading database ... 9401 files and directories currently installed.) Removing superviser-server ... Stopping superviser-server: dpkg: error processing

Re: dpkg can't purge init script

2001-08-22 Thread Andrew Suffield
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 : curitiba_POTATO:/# dpkg --purge superviser-server (Reading database ... 9401 files and directories currently installed.) Removing

Re: dpkg can't purge init script

2001-08-22 Thread Michael Beattie
On Wed, Aug 22, 2001 at 10:28:42PM +0100, Andrew Suffield wrote: curitiba_POTATO:/# dpkg --purge superviser-server ... curitiba_POTATO:/# ls -l /etc/init.d/superviser-server ... # Automatically added by dh_installinit /etc/init.d/superviser-server stop ... Yes actually, it should be

Re: dpkg can't purge init script

2001-08-22 Thread Andrew Suffield
On Thu, Aug 23, 2001 at 10:22:51AM +1200, Michael Beattie wrote: Yes actually, it should be guarded with a -e: if [ -e /etc/init.d/superviser-ircd ]; then /etc/init.d/superviser-ircd stop fi dancer on the mind asuffield? : Yes, actually, I shamelessly pasted an example out of the

Re: dpkg can't purge init script

2001-08-22 Thread Julian Gilbey
On Wed, Aug 22, 2001 at 10:28:42PM +0100, Andrew Suffield wrote: Yes actually, it should be guarded with a -e: if [ -e /etc/init.d/superviser-ircd ]; then /etc/init.d/superviser-ircd stop fi Should better be a -x, not -e. But that's a small point. Julian --

dpkg can't purge init script

2001-08-22 Thread Eric Van Buggenhaut
Sorry for cross-posting, I posted to the wrong list first. I can't purge a package : curitiba_POTATO:/# dpkg --purge superviser-server (Reading database ... 9401 files and directories currently installed.) Removing superviser-server ... Stopping superviser-server: dpkg: error processing

Re: dpkg can't purge init script

2001-08-22 Thread Andrew Suffield
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 : curitiba_POTATO:/# dpkg --purge superviser-server (Reading database ... 9401 files and directories currently installed.) Removing

Re: dpkg can't purge init script

2001-08-22 Thread Michael Beattie
On Wed, Aug 22, 2001 at 10:28:42PM +0100, Andrew Suffield wrote: curitiba_POTATO:/# dpkg --purge superviser-server ... curitiba_POTATO:/# ls -l /etc/init.d/superviser-server ... # Automatically added by dh_installinit /etc/init.d/superviser-server stop ... Yes actually, it should be

Re: dpkg can't purge init script

2001-08-22 Thread Andrew Suffield
On Thu, Aug 23, 2001 at 10:22:51AM +1200, Michael Beattie wrote: Yes actually, it should be guarded with a -e: if [ -e /etc/init.d/superviser-ircd ]; then /etc/init.d/superviser-ircd stop fi dancer on the mind asuffield? : Yes, actually, I shamelessly pasted an example out of the

Re: dpkg can't purge init script

2001-08-22 Thread Julian Gilbey
On Wed, Aug 22, 2001 at 10:28:42PM +0100, Andrew Suffield wrote: Yes actually, it should be guarded with a -e: if [ -e /etc/init.d/superviser-ircd ]; then /etc/init.d/superviser-ircd stop fi Should better be a -x, not -e. But that's a small point. Julian --