diff --git a/bin/emqx b/bin/emqx index feed46f62..a51ffcfbb 100755 --- a/bin/emqx +++ b/bin/emqx @@ -812,7 +812,7 @@ is_down() { if ps -p "$PID" >/dev/null; then # still around # shellcheck disable=SC2009 # this grep pattern is not a part of the program names - if ps -efp "$PID" | $GREP -q 'defunct'; then + if ps -fp "$PID" | $GREP -q 'defunct'; then # zombie state, print parent pid parent="$(ps -o ppid= -p "$PID" | tr -d ' ')" logwarn "$PID is marked , parent: $(ps -p "$parent")"