Merge pull request #5819 from zmstone/fix-print-pid-info-after-failed-to-stop

fix(bin/emqx): print pid info after wait
This commit is contained in:
Zaiming (Stone) Shi 2021-09-27 12:30:36 +02:00 committed by GitHub
commit 321ac8d985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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"