accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject svn commit: r1388715 - /accumulo/branches/1.4/bin/start-server.sh
Date Fri, 21 Sep 2012 22:53:06 GMT
Author: kturner
Date: Fri Sep 21 22:53:06 2012
New Revision: 1388715

URL: http://svn.apache.org/viewvc?rev=1388715&view=rev
Log:
ACCUMULO-312 fixed start-server.sh

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=1388715&r1=1388714&r2=1388715&view=diff
==============================================================================
--- accumulo/branches/1.4/bin/start-server.sh (original)
+++ accumulo/branches/1.4/bin/start-server.sh Fri Sep 21 22:53:06 2012
@@ -39,7 +39,7 @@ SLAVES=`wc -l < ${ACCUMULO_HOME}/conf/sl
 
 ip=`ifconfig | grep inet[^6] | awk '{print $2}' | sed 's/addr://' | grep -v 0.0.0.0 | grep
-v 127.0.0.1 | head -n 1`
 
-if [ $HOST == localhost -o $HOST == "`hostname`" -o $HOST == "$ip"] 
+if [ $HOST == localhost -o $HOST == "`hostname`" -o $HOST == "$ip" ] 
 then
   PID=`ps -ef | egrep ${ACCUMULO_HOME}/.*/accumulo.*.jar | grep "Main $SERVICE" | grep -v
grep | awk {'print $2'} | head -1`
 else
@@ -48,7 +48,7 @@ fi
 
 if [ -z $PID ]; then
   echo "Starting $LONGNAME on $HOST"
-  if [ $HOST == localhost -o $HOST == "`hostname`" -o $HOST == "$ip"] 
+  if [ $HOST == localhost -o $HOST == "`hostname`" -o $HOST == "$ip" ] 
   then
     ${bin}/accumulo ${SERVICE} --address $1 >${ACCUMULO_LOG_DIR}/${SERVICE}_${LOGHOST}.out
2>${ACCUMULO_LOG_DIR}/${SERVICE}_${LOGHOST}.err & 
     MAX_FILES_OPEN=`bash -c 'ulimit -n'`



Mime
View raw message