You are on page 1of 1

nning/stopped?

status $WAIT_FOR | grep -q "$TARGET_GOAL/$WAIT_STATE" && exit 0 # Give it a push $TARGET_GOAL $WAIT_FOR || : # upstart will kill this shell on started/stopped $WAIT_FOR while sleep $TIMEOUT ; do case $WAIT_FOREVER in N|n|0) exit 100 ;; Y|y|1) ;; *) exit 1 ;; esac done # Very strange, sleep returned non-zero? exit 1