Return-Path: X-Original-To: apmail-zookeeper-dev-archive@www.apache.org Delivered-To: apmail-zookeeper-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 384F34E73 for ; Tue, 17 May 2011 10:56:28 +0000 (UTC) Received: (qmail 71171 invoked by uid 500); 17 May 2011 10:56:28 -0000 Delivered-To: apmail-zookeeper-dev-archive@zookeeper.apache.org Received: (qmail 71148 invoked by uid 500); 17 May 2011 10:56:28 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 71140 invoked by uid 99); 17 May 2011 10:56:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 10:56:27 +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 May 2011 10:56:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 65E9BCD06D for ; Tue, 17 May 2011 10:55:47 +0000 (UTC) Date: Tue, 17 May 2011 10:55:47 +0000 (UTC) From: "Hudson (JIRA)" To: dev@zookeeper.apache.org Message-ID: <1048438716.18810.1305629747414.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1520617153.1164.1305059927595.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (ZOOKEEPER-1061) Zookeeper stop fails if start called twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZOOKEEPER-1061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034704#comment-13034704 ] Hudson commented on ZOOKEEPER-1061: ----------------------------------- Integrated in ZooKeeper-trunk #1185 (See [https://builds.apache.org/hudson/job/ZooKeeper-trunk/1185/]) ZOOKEEPER-1061. Zookeeper stop fails if start called twice. (Ted Dunning via mahadev) > Zookeeper stop fails if start called twice > ------------------------------------------ > > Key: ZOOKEEPER-1061 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1061 > Project: ZooKeeper > Issue Type: Bug > Components: scripts > Affects Versions: 3.3.2 > Reporter: Ted Dunning > Assignee: Ted Dunning > Fix For: 3.4.0 > > Attachments: ZOOKEEPER-1061.patch > > > The zkServer.sh script doesn't check properly to see if a previously started > server is still running. If you call start twice, the second invocation > will over-write the PID file with a process that then fails due to port > occupancy. > This means that stop will subsequently fail. > Here is a reference that describes how init scripts should normally work: > http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira