You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by al...@apache.org on 2016/09/15 16:20:45 UTC
nifi-minifi-cpp git commit: MINIFI-97 Correct handling of process ID
for minifi.sh stop
Repository: nifi-minifi-cpp
Updated Branches:
refs/heads/master 5dfe09795 -> cadd945d9
MINIFI-97 Correct handling of process ID for minifi.sh stop
This closes #10.
Signed-off-by: Aldrin Piri <al...@apache.org>
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/cadd945d
Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/tree/cadd945d
Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/diff/cadd945d
Branch: refs/heads/master
Commit: cadd945d99ef306902bda18cf3530dbca6c7ebb6
Parents: 5dfe097
Author: Pierre Villard <pi...@gmail.com>
Authored: Tue Aug 30 00:12:46 2016 +0200
Committer: Aldrin Piri <al...@apache.org>
Committed: Thu Sep 15 12:16:31 2016 -0400
----------------------------------------------------------------------
bin/minifi.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/cadd945d/bin/minifi.sh
----------------------------------------------------------------------
diff --git a/bin/minifi.sh b/bin/minifi.sh
index dca94f3..ef772e6 100755
--- a/bin/minifi.sh
+++ b/bin/minifi.sh
@@ -174,7 +174,7 @@ case "\$1" in
echo Starting MiNiFi with PID \${pid} and pid file \${pid_file}
;;
stop)
- if [ \$(active_pid \${saved_pid}) -ne 0 ]; then
+ if [ \$(active_pid \${saved_pid}) -le 0 ]; then
echo "MiNiFi is not currently running."
else
echo "Stopping MiNiFi (PID: \${saved_pid})."
@@ -274,7 +274,7 @@ case "$1" in
echo Starting MiNiFi with PID ${pid} and pid file ${pid_file}
;;
stop)
- if [ $(active_pid ${saved_pid}) -ne 0 ]; then
+ if [ $(active_pid ${saved_pid}) -le 0 ]; then
echo "MiNiFi is not currently running."
else
echo "Stopping MiNiFi (PID: ${saved_pid})."