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

Bug#172630: debian-policy: Clarification on /etc/init.d/foo restart behaviour.



On Wed, 11 Dec 2002, Bill Allombert wrote:
> Here a patch that clarify the behavior of /etc/init.d/foo restart.
> 
> This is taken straight out of 
> LSB 1.2 / Chapter 22. / System Initialization / Init Script Actions
> 
> --- policy.sgml	2002-11-15 07:49:40.000000000 +0100
> +++ policy.sgml.new	2002-12-11 13:26:53.000000000 +0100
> @@ -4575,7 +4575,7 @@
>  	      <item><p>stop the service,</p></item>
>  
>  	      <tag><tt>restart</tt></tag>
> -	      <item><p>stop and restart the service,</p></item>
> +	      <item><p>stop and restart the service if the service is already running, otherwise start the service,</p></item>
>  
>  	      <tag><tt>reload</tt></tag>
>  	      <item><p>cause the configuration of the service to be
> 
> 
> Whether is it a policy proposal or a clarification of the existant policy
> is beyond me to decide. However this is needed for LSB compliance. 

Seconded. This change is in accordance to the current plans for init scripts
in Debian, and it _is_ the preferred behaviour for restart (i.e. it is what
most packages do).

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

Attachment: pgpyPgNP3QdxO.pgp
Description: PGP signature


Reply to: