Bug#426877: Clarify what "sensible behaviour" is for init scripts
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.
Cheers,
--
Raphaël Hertzog
Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/
Reply to: