Re: Bug#426877: Clarify what "sensible behaviour" is for init scripts
2008/7/6 Raphael Hertzog <firstname.lastname@example.org>:
> No those are functions... the main code runs without "set -e" and thus doesn't
> fail on the error and the return value of the function is checked:
> case "$?" in
> 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
> 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
> If do_start returns 0 or 1, the whole script returns "0" (hence success).
Thanks for pointing that, you are right. Anyway I consider it a bit
complex and the fact is that various Debian init scripts return 1 in
the above case.
Thanks for all.
Iñaki Baz Castillo