[
https://issues.apache.org/jira/browse/ZOOKEEPER-1071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roman Shaposhnik resolved ZOOKEEPER-1071.
-----------------------------------------
Resolution: Duplicate
Dup of ZOOKEEPER-1061
> zkServer.sh script needs to track whether ZK is already running or not
> ----------------------------------------------------------------------
>
> Key: ZOOKEEPER-1071
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1071
> Project: ZooKeeper
> Issue Type: Bug
> Components: scripts
> Reporter: Roman Shaposhnik
>
> If one repeatedly invokes:
> {noformat}
> /usr/lib/zookeeper/bin/zkServer.sh start
> {noformat}
> after the initial start 2 bad things happen:
> 1. ZK reports that it got started where in reality it failed with the
> following:
> {noformat}
> 2011-05-24 10:18:58,217 - INFO [main:NIOServerCnxn$Factory@143] - binding to
> port 0.0.0.0/0.0.0.0:2181
> 2011-05-24 10:18:58,219 - FATAL [main:ZooKeeperServerMain@62] - Unexpected
> exception, exiting abnormally
> java.net.BindException: Address already in use
> {noformat}
> 2. It clobbers the zookeeper_server.pid file
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira