From ab1c4f3e2bc831c7b737f5cac0e2b58dacd5f31a Mon Sep 17 00:00:00 2001 From: Vladislav PERNIN Date: Tue, 27 Aug 2013 17:59:16 +0200 Subject: [PATCH] Escape the . in the kafka.Kafka chain Also add a grep java to get the real java process and exclude the kafka-run-class.sh process --- bin/kafka-server-stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/kafka-server-stop.sh b/bin/kafka-server-stop.sh index 516c6ad..35a26a6 100755 --- a/bin/kafka-server-stop.sh +++ b/bin/kafka-server-stop.sh @@ -13,4 +13,4 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -ps ax | grep -i 'kafka.Kafka' | grep -v grep | awk '{print $1}' | xargs kill -SIGTERM +ps ax | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk '{print $1}' | xargs kill -SIGINT -- 1.8.0.msysgit.0