[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#370471: use of "invoke-rc.d $PACKAGE stop || exit $?" in prerm scripts



On Mon, 05 Jun 2006, Lars Wirzenius wrote:
> The policy manual says (9.3.2 Writing the scripts):
> 
>         The init.d scripts should ensure that they will behave sensibly
>         if invoked with start when the service is already running, or
>         with stop when it isn't, and that they don't kill
>         unfortunately-named user processes.
> 
> Would it be acceptable to change this to say "must ensure"?

Yes.  Not only that, "behaves sensibly" is to be defined as "starting an
already started service is not an error and must return status 0, and stopping
an already stopped service is not an error and must return status 0" as a
minimal implementation :)

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Reply to: