From c2cf6b79b32bafe0faa9a78da8a9d61561ff11cb Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Mon, 27 Sep 2021 11:36:04 +0200 Subject: [PATCH] fix(bin/emqx): print pid info after wait --- bin/emqx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/emqx b/bin/emqx index 2fadce026..1be7996d1 100755 --- a/bin/emqx +++ b/bin/emqx @@ -308,8 +308,6 @@ is_down() { ps -p "$parent" return 0 fi - echo "ERROR: $PID is still around" - ps -p "$PID" return 1 fi # it's gone @@ -490,6 +488,8 @@ case "$1" in logger -t "${REL_NAME}[${PID}]" "STOP: $msg" # log to user console echoerr "stop failed, $msg" + echo "ERROR: $PID is still around" + ps -p "$PID" exit 1 fi logger -t "${REL_NAME}[${PID}]" "STOP: OK"