From 8665d2493d5271aefc679c8d22cd4d155a7efe98 Mon Sep 17 00:00:00 2001 From: Slawek Ligus Date: Mon, 18 May 2015 21:48:06 -0700 Subject: [PATCH] Relax the pgrep regex to correctly find and kill the java process. --- build-aux/rpm/init.d/opentsdb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/rpm/init.d/opentsdb b/build-aux/rpm/init.d/opentsdb index d721d483ba..5f4ee1d8d5 100644 --- a/build-aux/rpm/init.d/opentsdb +++ b/build-aux/rpm/init.d/opentsdb @@ -139,7 +139,7 @@ rh_status_q() { } findproc() { - pgrep -f "^java .* net.opentsdb.tools.TSDMain .*${NAME}" + pgrep -f "java .* net.opentsdb.tools.TSDMain .*${NAME}" } case "$1" in