Add exit status 1 if we fail to start, or reload.

Remove "oknodo" to actually provide an error message if we cannot stop the service.

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1464 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 23d1ff0e
......@@ -51,6 +51,7 @@ case "$1" in
else
log_end_msg 1
cat $output
exit 1
fi
rm $output
;;
......@@ -58,7 +59,7 @@ case "$1" in
log_daemon_msg "Stopping $DESC"
log_progress_msg $NAME
if start-stop-daemon \
--stop --quiet --pidfile $PIDFILE --oknodo --retry 10 \
--stop --quiet --pidfile $PIDFILE --retry 10 \
--exec $DAEMON; then
log_end_msg 0
else
......
......@@ -38,6 +38,7 @@ case "$1" in
else
log_end_msg 1
cat $output
exit 1
fi
rm $output
;;
......@@ -45,7 +46,7 @@ case "$1" in
log_daemon_msg "Stopping $DESC"
log_progress_msg $NAME
if start-stop-daemon \
--stop --quiet --pidfile $PIDFILE --oknodo --retry 10 \
--stop --quiet --pidfile $PIDFILE --retry 10 \
--exec $DAEMON; then
log_end_msg 0
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment