|
|
|
@ -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 |
|
|
|
|