hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject git commit: HBASE-12240 hbase-daemon.sh should remove pid file if process not found running (Ashish Singhi)
Date Mon, 13 Oct 2014 06:09:21 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 a33c78872 -> caa47654b


HBASE-12240 hbase-daemon.sh should remove pid file if process not found running (Ashish Singhi)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/caa47654
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/caa47654
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/caa47654

Branch: refs/heads/branch-1
Commit: caa47654bd75d936d7545147baad5bef7a1a493b
Parents: a33c788
Author: stack <stack@apache.org>
Authored: Sun Oct 12 23:07:19 2014 -0700
Committer: stack <stack@apache.org>
Committed: Sun Oct 12 23:09:06 2014 -0700

----------------------------------------------------------------------
 bin/hbase-daemon.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/caa47654/bin/hbase-daemon.sh
----------------------------------------------------------------------
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)


Mime
View raw message