You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by kt...@apache.org on 2011/10/14 17:51:27 UTC

svn commit: r1183395 - /incubator/accumulo/trunk/bin/stop-server.sh

Author: kturner
Date: Fri Oct 14 15:51:27 2011
New Revision: 1183395

URL: http://svn.apache.org/viewvc?rev=1183395&view=rev
Log:
ACCUMULO-28 fixed bug in stop-server.sh

Modified:
    incubator/accumulo/trunk/bin/stop-server.sh

Modified: incubator/accumulo/trunk/bin/stop-server.sh
URL: http://svn.apache.org/viewvc/incubator/accumulo/trunk/bin/stop-server.sh?rev=1183395&r1=1183394&r2=1183395&view=diff
==============================================================================
--- incubator/accumulo/trunk/bin/stop-server.sh (original)
+++ incubator/accumulo/trunk/bin/stop-server.sh Fri Oct 14 15:51:27 2011
@@ -10,7 +10,7 @@ bin=`cd "$bin"; pwd`
 if [ "$1" = "`hostname`" ]; then
 	PID=`ps -ef | grep "$ACCUMULO_HOME" | egrep ${2} | grep "Main ${3}" | grep -v grep | grep -v ssh | grep -v stop-server.sh | awk {'print \$2'} | head -1`
 else
-	PID=`ssh -q -o 'ConnectTimeout 8' $1 "ps -ef | grep \"$ACCUMULO_HOME\" egrep '${2}' | grep 'Main ${3}' | grep -v grep | grep -v ssh | grep -v stop-server.sh" | awk {'print $2'} | head -1`
+	PID=`ssh -q -o 'ConnectTimeout 8' $1 "ps -ef | grep \"$ACCUMULO_HOME\" |  egrep '${2}' | grep 'Main ${3}' | grep -v grep | grep -v ssh | grep -v stop-server.sh" | awk {'print $2'} | head -1`
 fi
 if [ ! -z $PID ]; then
         echo "stopping ${3} on $1";