On Tuesday 21 April 2009 15:05:06 Michael Meskes wrote: > Not really, log_end_msg just returns its parameter. Given that it is called > with $? this means that the command right in front of it returns 1. The > command in question is start-stop-daemon. Yes, it's quite likely that > start-stop-daemon is throwing 1 but why? What's going wrong?
My experiments has proven otherwise: # . /lib/lsb/init-functions; log_end_msg 0; echo $?; ...done. 1 Including log_end_msg function: log_end_msg () { # If no arguments were passed, return if [ -z "${1:-}" ]; then return 1 fi retval=$1 log_end_msg_pre "$@" # Only do the fancy stuff if we have an appropriate terminal # and if /usr is already mounted if log_use_fancy_output; then RED=`$TPUT setaf 1` YELLOW=`$TPUT setaf 3` NORMAL=`$TPUT op` else RED='' YELLOW='' NORMAL='' fi if [ $1 -eq 0 ]; then echo "." elif [ $1 -eq 255 ]; then /bin/echo -e " ${YELLOW}(warning).${NORMAL}" else /bin/echo -e " ${RED}failed!${NORMAL}" fi log_end_msg_post "$@" return $retval } -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org