incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject svn commit: r1388612 - /incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc
Date Fri, 21 Sep 2012 18:46:45 GMT
Author: rvs
Date: Fri Sep 21 18:46:45 2012
New Revision: 1388612

URL: http://svn.apache.org/viewvc?rev=1388612&view=rev
Log:
BIGTOP-667. start hadoop-httpfs in SLES return 3 instead of 0

Modified:
    incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc

Modified: incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc?rev=1388612&r1=1388611&r2=1388612&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc Fri Sep 21
18:46:45 2012
@@ -45,8 +45,15 @@ start() {
 
   su -s /bin/bash -c "${EXEC_PATH} start $DAEMON_FLAGS" $HTTPFS_USER
 
-  checkstatusofproc
-  RETVAL=$?
+  for second in {5..0}
+  do
+    checkstatusofproc
+    RETVAL=$?
+    if [ "$RETVAL" -eq $RETVAL_SUCCESS ] ; then
+      break
+    fi
+    sleep 1
+  done
 
   [ $RETVAL -eq $RETVAL_SUCCESS ] && touch $LOCKFILE
   return $RETVAL



Mime
View raw message