From a419a23e63baa9e74e39ef1e15848e77c688e445 Mon Sep 17 00:00:00 2001 From: Ketan Padegaonkar Date: Fri, 23 May 2014 14:41:09 -0300 Subject: [PATCH] Exit codes for status command are not compliant See - http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html The status action is required to return an exit code of `0` if the service is running. If the service is not running a non-zero code is required. --- examples/remote_syslog.init.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/remote_syslog.init.d b/examples/remote_syslog.init.d index 2e25a80..15ecff6 100755 --- a/examples/remote_syslog.init.d +++ b/examples/remote_syslog.init.d @@ -62,9 +62,12 @@ status(){ if (is_running); then echo "found" + RETVAL=0 else echo "not found" + RETVAL=1 fi + return $RETVAL } reload(){