diff options
author | Robin Houston <robin@lenny.robin> | 2011-06-29 22:18:38 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-06-29 22:18:38 +0100 |
commit | 749e84b11ec8b01409027ff2384789c2bf273253 (patch) | |
tree | e98c31d441222d3c3671674142189c01d2e18f0b | |
parent | 58fc6c70b211bb6acc913405e5b7e6457eb5546a (diff) |
Make sure /etc/init.d/foi-alert-tracks check does not produce extraneous output, and that it exits with a non-zero status code in the error case (where it has restarted the daemon).
-rw-r--r-- | config/alert-tracks-debian.ugly | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/alert-tracks-debian.ugly b/config/alert-tracks-debian.ugly index 3263002a1..838bb6458 100644 --- a/config/alert-tracks-debian.ugly +++ b/config/alert-tracks-debian.ugly @@ -43,7 +43,10 @@ case "$1" in quietly_start_daemon if [ $? -ne 1 ] then - echo "WhatDoTheyKnow alert daemon was not running; restarting now" + echo "WhatDoTheyKnow alert daemon was not running; now restarted" + exit 1 + else + exit 0 fi ;; |