Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A00289EB6 for ; Wed, 11 Apr 2012 23:57:39 +0000 (UTC) Received: (qmail 90252 invoked by uid 500); 11 Apr 2012 23:57:39 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 90214 invoked by uid 500); 11 Apr 2012 23:57:39 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 90206 invoked by uid 99); 11 Apr 2012 23:57:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 23:57:39 +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; Wed, 11 Apr 2012 23:57:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D4C61366414 for ; Wed, 11 Apr 2012 23:57:17 +0000 (UTC) Date: Wed, 11 Apr 2012 23:57:17 +0000 (UTC) From: "Eli Collins (Commented) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <203457330.15357.1334188637872.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1153021670.15184.1334186357083.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-8270) hadoop-daemon.sh stop action is not LSB compliant MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-8270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13252062#comment-13252062 ] Eli Collins commented on HADOOP-8270: ------------------------------------- +1 looks good, the test failure is unrelated, no new test since it's the daemon.sh script. > hadoop-daemon.sh stop action is not LSB compliant > ------------------------------------------------- > > Key: HADOOP-8270 > URL: https://issues.apache.org/jira/browse/HADOOP-8270 > Project: Hadoop Common > Issue Type: Bug > Components: scripts > Affects Versions: 0.23.1 > Reporter: Roman Shaposhnik > Assignee: Roman Shaposhnik > Attachments: HADOOP-8270.patch.txt > > > The following bit of code from hadoop-daemon.sh is not LSB compliant, since > according to http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html > a stop action on an already stopped service should return 0. > {noformat} > (stop) > if [ -f $pid ]; then > if kill -0 `cat $pid` > /dev/null 2>&1; then > echo stopping $command > kill `cat $pid` > else > echo no $command to stop > exit 1 > fi > else > echo no $command to stop > exit 1 > fi > ;; > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira