Return-Path: X-Original-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 066679DC2 for ; Fri, 13 Apr 2012 01:59:41 +0000 (UTC) Received: (qmail 79786 invoked by uid 500); 13 Apr 2012 01:59:40 -0000 Delivered-To: apmail-incubator-bigtop-dev-archive@incubator.apache.org Received: (qmail 79751 invoked by uid 500); 13 Apr 2012 01:59:40 -0000 Mailing-List: contact bigtop-dev-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-dev@incubator.apache.org Received: (qmail 79742 invoked by uid 99); 13 Apr 2012 01:59:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 01:59:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 01:59:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 88BBD36896D for ; Fri, 13 Apr 2012 01:59:17 +0000 (UTC) Date: Fri, 13 Apr 2012 01:59:17 +0000 (UTC) From: =?utf-8?Q?Bruno_Mah=C3=A9_=28Commented=29_=28JIRA=29?= To: bigtop-dev@incubator.apache.org Message-ID: <1564892757.20351.1334282357561.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <125180702.20302.1334281398162.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (BIGTOP-528) A small patch to give better return codes which can be understood by chef and pupper among others. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/BIGTOP-528?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1325= 3057#comment-13253057 ]=20 Bruno Mah=C3=A9 commented on BIGTOP-528: ----------------------------------- +1 =20 > A small patch to give better return codes which can be understood by chef= and pupper among others. > -------------------------------------------------------------------------= ------------------------- > > Key: BIGTOP-528 > URL: https://issues.apache.org/jira/browse/BIGTOP-528 > Project: Bigtop > Issue Type: Bug > Affects Versions: 0.3.0 > Reporter: Peter Linnell > Assignee: Peter Linnell > Priority: Minor > Fix For: 0.4.0 > > Attachments: BIGTOP-528.patch > > > Configuration management tools like Puppet and Chef depend on exit codes.= In case of the hadoop-hive-server package, the /etc/init.d/hadoop-hive-ser= ver status call provides zero exit code independent of the service running = or not. This makes Chef believe that the service is running and there is no= need to start it. The fix should be very easy, only changing the three occ= urances of the $status variable in the service's hive_status() function to = $RETVAL. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira