Merge pull request #5817 from zmstone/chore-pring-pid-info-if-failed-to-stop

chore(bin/emqx): print pid info if failed to stop
This commit is contained in:
Zaiming (Stone) Shi 2021-09-27 11:32:36 +02:00 committed by GitHub
commit 6043c7ab3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -308,6 +308,8 @@ is_down() {
ps -p "$parent"
return 0
fi
echo "ERROR: $PID is still around"
ps -p "$PID"
return 1
fi
# it's gone