|
|
|
@ -15,11 +15,14 @@
@@ -15,11 +15,14 @@
|
|
|
|
|
# limitations under the License. |
|
|
|
|
SIGNAL=${SIGNAL:-TERM} |
|
|
|
|
|
|
|
|
|
if [[ $(uname -s) == "OS/390" ]]; then |
|
|
|
|
OSNAME=$(uname -s) |
|
|
|
|
if [[ "$OSNAME" == "OS/390" ]]; then |
|
|
|
|
if [ -z $JOBNAME ]; then |
|
|
|
|
JOBNAME="KAFKSTRT" |
|
|
|
|
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}') |
|
|
|
|
else |
|
|
|
|
PIDS=$(ps ax | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk '{print $1}') |
|
|
|
|
fi |
|
|
|
|