accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1306908 - /accumulo/branches/1.4/bin/start-server.sh
Date Thu, 29 Mar 2012 15:23:53 GMT
Author: vines
Date: Thu Mar 29 15:23:53 2012
New Revision: 1306908

URL: http://svn.apache.org/viewvc?rev=1306908&view=rev
Log:
ACCUMULO-503 - pid check no longer sshs if host is localhost

Modified:
    accumulo/branches/1.4/bin/start-server.sh

Modified: accumulo/branches/1.4/bin/start-server.sh
URL: http://svn.apache.org/viewvc/accumulo/branches/1.4/bin/start-server.sh?rev=1306908&r1=1306907&r2=1306908&view=diff
==============================================================================
--- accumulo/branches/1.4/bin/start-server.sh (original)
+++ accumulo/branches/1.4/bin/start-server.sh Thu Mar 29 15:23:53 2012
@@ -37,7 +37,11 @@ then
 fi
 SLAVES=`wc -l < ${ACCUMULO_HOME}/conf/slaves`
 
-PID=`$SSH $HOST ps -ef | egrep ${ACCUMULO_HOME}/.*/accumulo.*.jar | grep "Main $SERVICE"
| grep -v grep | awk {'print $2'} | head -1`
+if [ $HOST == localhost ] 
+  PID=`ps -ef | egrep ${ACCUMULO_HOME}/.*/accumulo.*.jar | grep "Main $SERVICE" | grep -v
grep | awk {'print $2'} | head -1`
+else
+  PID=`$SSH $HOST ps -ef | egrep ${ACCUMULO_HOME}/.*/accumulo.*.jar | grep "Main $SERVICE"
| grep -v grep | awk {'print $2'} | head -1`
+fi
 
 if [ -z $PID ]; then
     echo "Starting $LONGNAME on $HOST"



Mime
View raw message