Repository: nifi-minifi-cpp Updated Branches: refs/heads/master 0f5e2fa81 -> 4160fb2f9
MINIFICPP-546 - exit code of 0 for minifi.sh status when process isn't running This closes #366. Signed-off-by: Marc Parisi <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/commit/4160fb2f Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/tree/4160fb2f Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/diff/4160fb2f Branch: refs/heads/master Commit: 4160fb2f99d10be6254c2dcad19826579ead8068 Parents: 0f5e2fa Author: Dustin Rodrigues <[email protected]> Authored: Tue Jun 26 23:00:57 2018 -0400 Committer: Marc Parisi <[email protected]> Committed: Fri Jun 29 06:40:32 2018 -0400 ---------------------------------------------------------------------- bin/minifi.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/4160fb2f/bin/minifi.sh ---------------------------------------------------------------------- diff --git a/bin/minifi.sh b/bin/minifi.sh index 8c4d1ff..1a62838 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)
