On Thu, Aug 31, 2006 at 09:23:47PM +0200, Bastian Kleineidam wrote:

> Steve Langasek schrieb:
> > On Wed, Aug 30, 2006 at 08:39:10PM +0200, Bastian Kleineidam wrote:
> >> What should be done then in prerm when the stop command fails?

> > Why is the stop command failing?
> It fails when the daemon is not running. Perhaps it should not do so.

Indeed it should not; I just pointed out the policy section that this
violates.

> However, the stop command can still possibly fail. The question is what
> should be done in prerm if it fails? I think ignoring the error is the
> right decision then, by adding "|| true".

I think ignoring errors is almost always the wrong thing to do.  Ignoring a
failure to stop the daemon may be a security hole, if an uninstalled daemon
is left running without the knowledge of the admin.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/


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

Reply via email to