From e7e3c1a19a891053c29184fcb54c4c96ee8390a7 Mon Sep 17 00:00:00 2001 From: ssm Date: Tue, 22 May 2007 15:35:54 +0000 Subject: [PATCH] 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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1464 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/debian/varnish.init | 3 ++- varnish-cache/debian/varnish.varnishlog.init | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/varnish-cache/debian/varnish.init b/varnish-cache/debian/varnish.init index e3b1319e..9003dbac 100644 --- a/varnish-cache/debian/varnish.init +++ b/varnish-cache/debian/varnish.init @@ -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 diff --git a/varnish-cache/debian/varnish.varnishlog.init b/varnish-cache/debian/varnish.varnishlog.init index 26af5319..5fd6f256 100755 --- a/varnish-cache/debian/varnish.varnishlog.init +++ b/varnish-cache/debian/varnish.varnishlog.init @@ -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 -- 2.39.5