Browse Source

MINOR: Tweak IBM i support in "stop" scripts (#9810)

Reviewers: Mickael Maison <mickael.maison@gmail.com>
pull/9948/head
Jesse Gorzinski 4 years ago committed by GitHub
parent
commit
976e6ea0f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      bin/kafka-server-stop.sh
  2. 2
      bin/zookeeper-server-stop.sh

2
bin/kafka-server-stop.sh

@ -22,7 +22,7 @@ if [[ "$OSNAME" == "OS/390" ]]; then @@ -22,7 +22,7 @@ if [[ "$OSNAME" == "OS/390" ]]; then
fi
PIDS=$(ps -A -o pid,jobname,comm | grep -i $JOBNAME | grep java | grep -v grep | awk '{print $1}')
elif [[ "$OSNAME" == "OS400" ]]; then
PIDS=$(ps -af | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk '{print $2}')
PIDS=$(ps -Af | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk '{print $2}')
else
PIDS=$(ps ax | grep ' kafka\.Kafka ' | grep java | grep -v grep | awk '{print $1}')
fi

2
bin/zookeeper-server-stop.sh

@ -22,7 +22,7 @@ if [[ "$OSNAME" == "OS/390" ]]; then @@ -22,7 +22,7 @@ if [[ "$OSNAME" == "OS/390" ]]; then
fi
PIDS=$(ps -A -o pid,jobname,comm | grep -i $JOBNAME | grep java | grep -v grep | awk '{print $1}')
elif [[ "$OSNAME" == "OS400" ]]; then
PIDS=$(ps -af | grep java | grep -i QuorumPeerMain | grep -v grep | awk '{print $2}')
PIDS=$(ps -Af | grep java | grep -i QuorumPeerMain | grep -v grep | awk '{print $2}')
else
PIDS=$(ps ax | grep java | grep -i QuorumPeerMain | grep -v grep | awk '{print $1}')
fi

Loading…
Cancel
Save