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 B698A9A24 for ; Tue, 17 Apr 2012 16:47:44 +0000 (UTC) Received: (qmail 99455 invoked by uid 500); 17 Apr 2012 16:47:44 -0000 Delivered-To: apmail-incubator-bigtop-dev-archive@incubator.apache.org Received: (qmail 99413 invoked by uid 500); 17 Apr 2012 16:47:44 -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 99405 invoked by uid 99); 17 Apr 2012 16:47:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 16:47:44 +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; Tue, 17 Apr 2012 16:47:39 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7398639E336 for ; Tue, 17 Apr 2012 16:47:19 +0000 (UTC) Date: Tue, 17 Apr 2012 16:47:19 +0000 (UTC) From: "Roman Shaposhnik (Updated) (JIRA)" To: bigtop-dev@incubator.apache.org Message-ID: <87184145.33540.1334681239474.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <691227365.31307.1334625257117.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (BIGTOP-537) provide a workaround for non-LSB compliant catalina.sh handling of a stop action 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/BIGTOP-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roman Shaposhnik updated BIGTOP-537: ------------------------------------ Attachment: BIGTOP-537.patch.txt > provide a workaround for non-LSB compliant catalina.sh handling of a stop action > -------------------------------------------------------------------------------- > > Key: BIGTOP-537 > URL: https://issues.apache.org/jira/browse/BIGTOP-537 > Project: Bigtop > Issue Type: Bug > Components: General > Affects Versions: 0.4.0 > Reporter: Roman Shaposhnik > Assignee: Roman Shaposhnik > Fix For: 0.4.0 > > Attachments: BIGTOP-537.patch.txt > > > Turns out that the default catalina.sh stop action is a weird in how it handles a missing PID file: > {noformat} > if [ ! -z "$CATALINA_PID" ]; then > if [ -f "$CATALINA_PID" ]; then > ... > else > echo "\$CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted." > exit 1 > fi > fi > {noformat} > This, effectively, means that one can't stop an already stopped service cleanly. -- 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