Re: Clarify what "sensible behaviour" is for init scripts
Raphael Hertzog <firstname.lastname@example.org> writes:
> diff --git a/policy.sgml b/policy.sgml
> index c9bd84f..772afce 100644
> --- a/policy.sgml
> +++ b/policy.sgml
> @@ -5946,9 +5946,11 @@ rmdir /usr/local/share/emacs 2>/dev/null || true
> 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
> + isn't (in particular, they should not exit with a non-zero
> + error code), 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>.
> + <prgn>start-stop-daemon</prgn> and its <tt>--oknodo</tt>
> + option.
Looks good to me, modulo the mixed-tabs-and-spaces indentation
problems. Pick one or the other and stick to it.
\ “When I turned two I was really anxious, because I'd doubled my |
`\ age in a year. I thought, if this keeps up, by the time I'm six |
_o__) I'll be ninety.” —Steven Wright |