Package: nsca
Version: 2.9.1-2
Severity: normal
Tags: patch
Dear Maintainer,
init script always returns 0 for 'status', due to 'exit 0' at end,
ignoring result from status_of_proc
*** Please consider answering these questions, where appropriate ***
* What led up to the situation?
Running 'service --status-all'
* What was the outcome of this action?
Output ' [ + ] nsca'
* What outcome did you expect instead?
Output ' [ - ] nsca', as it was not running, due to #689631
-- System Information:
Debian Release: 7.8
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages nsca depends on:
ii confget 1.03-1
ii debconf [debconf-2.0] 1.5.49
ii libc6 2.13-38+deb7u6
ii libmcrypt4 2.5.8-3.1
ii nsca-client 2.9.1-2
nsca recommends no packages.
Versions of packages nsca suggests:
ii nagios-plugins 1.4.16-1
ii nagios-plugins-basic 1.4.16-1
pn nagios3 <none>
--- nsca.orig 2015-01-20 16:41:15.000000000 +0100
+++ nsca 2015-01-20 16:59:19.000000000 +0100
@@ -70,7 +69,7 @@
$0 start
;;
status)
- status_of_proc -p $PIDFILE $DAEMON $NAME
+ status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
;;
*)
log_failure_msg "Usage: $N {start|stop|restart|reload|force-reload|status}"