2008/7/6 Raphael Hertzog <[EMAIL PROTECTED]>: > 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: > > do_start > case "$?" in > 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; > 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; > esac > > > 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 <[EMAIL PROTECTED]>