Remove ignore case option when grep process info to be more specific
Remove ignore case option when grep process info to be more specific since our entry point is definitely `kafka.Kafka`.
Author: Luke Chen
Reviewers: Gwen Shapira, Lucas Bradstreet
Closes from showuon/KAFKA-10390
@@ -24,7 +24,7 @@ if [[ "$OSNAME" == "OS/390" ]]; then
elif [[ "$OSNAME" == "OS400" ]]; then
PIDS=$(ps -af | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk '{print $2}')
else
- PIDS=$(ps ax | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk '{print $1}')
+ PIDS=$(ps ax | grep ' kafka\.Kafka ' | grep java | grep -v grep | awk '{print $1}')
fi
if [ -z "$PIDS" ]; then
