incubator-accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject svn commit: r1183395 - /incubator/accumulo/trunk/bin/stop-server.sh
Date Fri, 14 Oct 2011 15:51:27 GMT
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";



Mime
View raw message