Re: Service stopping in prerm considered harmful
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 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...
> > ITYM "must not fail if the service is already stopped".
> Well, whatever suits your fancy that results in a return status of 0
> should the script return with the service stopped (regardless of the
> script needing to do something or not to archieve that stopped status)
Umh... Well, if the init script detects the service is still running
after it tried to stop it, _then_ it can return failure
Gunnar Wolf - firstname.lastname@example.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973 F800 D80E F35A 8BB5 27AF