This one time, at band camp, Bastian Kleineidam said:
> 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.

It should not do so.

> 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".

You should take reasonable care to make sure that the stop target does
not fail, and only exit with an error when the script can't cope.  Just
adding or true is not really acceptable.  It would be better to let the
script fail than to paper over a problem, frankly.
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to