From a13b8d70617d8fc80308240e4d87e7e288ad66ab Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Tue, 26 Jun 2018 23:00:57 -0400 Subject: [PATCH] MINIFICPP-546 - exit code of 0 for minifi.sh status when process isn't running --- bin/minifi.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/minifi.sh b/bin/minifi.sh index 8c4d1ffd0a..1a6283819d 100755 --- a/bin/minifi.sh +++ b/bin/minifi.sh @@ -329,9 +329,6 @@ case "$1" in ${minifi_executable} ;; status) - # interpret status as per LSB specifications - # see: http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html - if [ "${saved_pid}" -gt 0 ]; then if [ $(active_pid ${saved_pid}) -ne 0 ]; then # program is dead and pid file exists @@ -345,7 +342,7 @@ case "$1" in else # program is not running echo "MiNiFi is not currently running." - exit 3; + exit 0; fi ;; update)