From a35be0744772b21a6fe27e431b631169f014cec6 Mon Sep 17 00:00:00 2001 From: Ashish Singhi Date: Mon, 13 Oct 2014 10:59:56 +0530 Subject: [PATCH] HBASE-12240 hbase-daemon.sh should remove pid file if process not found running --- bin/hbase-daemon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hbase-daemon.sh b/bin/hbase-daemon.sh index 9d9f698..4dcc520 100755 --- a/bin/hbase-daemon.sh +++ b/bin/hbase-daemon.sh @@ -255,7 +255,6 @@ case $startStop in echo "`date` Terminating $command" >> $loglog kill $pidToKill > /dev/null 2>&1 waitForProcessEnd $pidToKill $command - rm $pid else retval=$? echo no $command to stop because kill -0 of pid $pidToKill failed with status $retval @@ -263,6 +262,7 @@ case $startStop in else echo no $command to stop because no pid file $pid fi + rm -f $pid ;; (restart) -- 1.9.2.msysgit.0