Re: Service stopping in prerm considered harmful

2008-03-28 Thread Adam D. Barratt
Ed Falk wrote, 2008-03-28 01:35: For the nth time squared, an initscript MUST NOT FAIL to stop an already stopped service. How is it supposed to do that? The service isn't running, so can't be stopped, therefore the script (if called to stop it) can only fail to stop it... If the service is

Re: Service stopping in prerm considered harmful

2008-03-28 Thread Henrique de Moraes Holschuh
On Tue, 25 Mar 2008, Gunnar Wolf wrote: Henrique de Moraes Holschuh dijo [Mon, Mar 24, 2008 at 07:44:02PM -0300]: For the nth time, I have a package that dpkg is unable to remove because it tries to stop a service that either is already stopped (I didn't want For the nth

Re: Service stopping in prerm considered harmful

2008-03-27 Thread Ed Falk
For the nth time squared, an initscript MUST NOT FAIL to stop an already stopped service. How is it supposed to do that? The service isn't running, so can't be stopped, therefore the script (if called to stop it) can only fail to stop it... If the service is already stopped, then the script

Re: Service stopping in prerm considered harmful

2008-03-25 Thread Gunnar Wolf
Henrique de Moraes Holschuh dijo [Mon, Mar 24, 2008 at 07:44:02PM -0300]: For the nth time, I have a package that dpkg is unable to remove because it tries to stop a service that either is already stopped (I didn't want For the nth time squared, an initscript MUST NOT FAIL to stop an

Re: Service stopping in prerm considered harmful

2008-03-24 Thread Henrique de Moraes Holschuh
On Sun, 23 Mar 2008, Pierre THIERRY wrote: For the nth time, I have a package that dpkg is unable to remove because it tries to stop a service that either is already stopped (I didn't want For the nth time squared, an initscript MUST NOT FAIL to stop an already stopped service. Ever. It must

Re: Service stopping in prerm considered harmful

2008-03-24 Thread Darren Salt
I demand that Henrique de Moraes Holschuh may or may not have written... On Sun, 23 Mar 2008, Pierre THIERRY wrote: For the nth time, I have a package that dpkg is unable to remove because it tries to stop a service that either is already stopped (I didn't want For the nth time squared, an

Re: Service stopping in prerm considered harmful

2008-03-24 Thread Henrique de Moraes Holschuh
On Mon, 24 Mar 2008, Darren Salt wrote: I demand that Henrique de Moraes Holschuh may or may not have written... On Sun, 23 Mar 2008, Pierre THIERRY wrote: For the nth time, I have a package that dpkg is unable to remove because it tries to stop a service that either is already stopped (I

Re: Service stopping in prerm considered harmful

2008-03-23 Thread Steve Langasek
On Sat, Mar 22, 2008 at 09:06:11PM -0700, Russ Allbery wrote: For the nth time, I have a package that dpkg is unable to remove because it tries to stop a service that either is already stopped (I didn't want it) or couldn't start at all. In the former case, the fix seems simple: start the

Re: Service stopping in prerm considered harmful

2008-03-23 Thread Alexander Wirt
Pierre THIERRY schrieb am Sunday, den 23. March 2008: For the nth time, I have a package that dpkg is unable to remove because it tries to stop a service that either is already stopped (I didn't want it) or couldn't start at all. In the former case, the fix seems simple: start the service and

Re: Service stopping in prerm considered harmful

2008-03-23 Thread Russ Allbery
Alexander Wirt [EMAIL PROTECTED] writes: There is a small trick with dh_installinit that can be used. dh_installinit supports an errorhandler. If called like: dh_installinit -i --error-handler=init_failed --init-script=amavis -- defaults 19 21 it generates the following debhelper code

Re: Service stopping in prerm considered harmful

2008-03-23 Thread Alexander Wirt
Russ Allbery schrieb am Sunday, den 23. March 2008: Alexander Wirt [EMAIL PROTECTED] writes: There is a small trick with dh_installinit that can be used. dh_installinit supports an errorhandler. If called like: dh_installinit -i --error-handler=init_failed --init-script=amavis --

Re: Service stopping in prerm considered harmful

2008-03-23 Thread Steve Greenland
On 23-Mar-08, 03:05 (CDT), Steve Langasek [EMAIL PROTECTED] wrote: We can be more explicit about what it means to be sensible, of course, but I don't see how anyone would argue that throwing an error when the service is already stopped would be ok. I've had bug reports closed with *exactly*

Service stopping in prerm considered harmful

2008-03-22 Thread Pierre THIERRY
For the nth time, I have a package that dpkg is unable to remove because it tries to stop a service that either is already stopped (I didn't want it) or couldn't start at all. In the former case, the fix seems simple: start the service and remove the package. But sometimes starting the service may

Re: Service stopping in prerm considered harmful

2008-03-22 Thread Russ Allbery
Pierre THIERRY [EMAIL PROTECTED] writes: For the nth time, I have a package that dpkg is unable to remove because it tries to stop a service that either is already stopped (I didn't want it) or couldn't start at all. In the former case, the fix seems simple: start the service and remove the