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

Bug#426877: Clarify what "sensible behaviour" is for init scripts



Raphael Hertzog <hertzog@debian.org> writes:
> On Fri, 04 Jul 2008, Steve Langasek wrote:
>> Here's a tweak that I think flows a little better:
> [...]
>>  	  <p>
>>  	    The <file>init.d</file> scripts must ensure that they will
>> -	    behave sensibly if invoked with <tt>start</tt> when the
>> -	    service is already running, or with <tt>stop</tt> when it
>> -	    isn't, and that they don't kill unfortunately-named user
>> -	    processes.  The best way to achieve this is usually to use
>> -	    <prgn>start-stop-daemon</prgn>.
>> +	    behave sensibly (i.e., returning success and not starting
>> +	    multiple copies of a service) if invoked with <tt>start</tt>
>> +	    when the service is already running, or with <tt>stop</tt>
>> +	    when it isn't, and that they don't kill unfortunately-named
>> +	    user processes.  The best way to achieve this is usually to
>> +	    use <prgn>start-stop-daemon</prgn> with the <tt>--oknodo</tt>
>> +	    option.
>>  	  </p>
>
> Fine with me. Seconded.

Also seconded, which makes three, so committed.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: