--- ovs-ctl 2016-03-24 11:48:04.480452427 +0000 +++ /usr/share/openvswitch/scripts/ovs-ctl 2016-03-24 11:56:34.561404050 +0000 @@ -726,7 +726,7 @@ case $command in start) start_ovsdb || exit 1 - start_forwarding + start_forwarding || exit 1 add_managers ;; stop) --- ovs-lib 2016-03-24 11:39:00.551637676 +0000 +++ /usr/share/openvswitch/scripts/ovs-lib 2016-03-24 11:55:53.489645712 +0000 @@ -63,7 +63,7 @@ ;; *) echo "`date -u`:$@" >> "${logdir}/ovs-ctl.log" - "${datadir}/scripts/ovs-ctl" "$@" 2>&1 | tee -a "${logdir}/ovs-ctl.log" + "${datadir}/scripts/ovs-ctl" "$@" 2>&1 ;; esac } @@ -190,9 +190,11 @@ set nice -n "$priority" "$@" fi - action "Starting $daemon" "$@" - - echo $? + if ! action "Starting $daemon" "$@" + then + log_failure_msg "Start of $@ failed with $?" + return 1 + fi if test X"$strace" != X; then # Strace doesn't have the -D option so we attach after the fact.