Return-Path: X-Original-To: apmail-incubator-bigtop-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE57AD31B for ; Fri, 21 Sep 2012 18:47:30 +0000 (UTC) Received: (qmail 46946 invoked by uid 500); 21 Sep 2012 18:47:30 -0000 Delivered-To: apmail-incubator-bigtop-commits-archive@incubator.apache.org Received: (qmail 46866 invoked by uid 500); 21 Sep 2012 18:47:30 -0000 Mailing-List: contact bigtop-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@incubator.apache.org Delivered-To: mailing list bigtop-commits@incubator.apache.org Received: (qmail 46858 invoked by uid 99); 21 Sep 2012 18:47:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 18:47:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 18:47:28 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0DF3F23889D7; Fri, 21 Sep 2012 18:46:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1388612 - /incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc Date: Fri, 21 Sep 2012 18:46:45 -0000 To: bigtop-commits@incubator.apache.org From: rvs@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120921184646.0DF3F23889D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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