Skip to content

Commit

Permalink
ZOOKEEPER-1490. If the configured log directory does not exist zookee…
Browse files Browse the repository at this point in the history
…per will not start. Better to create the directory and start (suja s via phunt)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1355641 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
phunt committed Jun 30, 2012
1 parent 555488f commit c25ba02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ BUGFIXES:

ZOOKEEPER-1466. QuorumCnxManager.shutdown missing synchronization. (Patrick Hunt via mahadev)

ZOOKEEPER-1490. If the configured log directory does not exist
zookeeper will not start. Better to create the directory and start
(suja s via phunt)

IMPROVEMENTS:

ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,
Expand Down
4 changes: 4 additions & 0 deletions bin/zkServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ else
mkdir -p $(dirname "$ZOOPIDFILE")
fi

if [ ! -w "$ZOO_LOG_DIR" ] ; then
mkdir -p "$ZOO_LOG_DIR"
fi

_ZOO_DAEMON_OUT="$ZOO_LOG_DIR/zookeeper.out"

case $1 in
Expand Down

0 comments on commit c25ba02

Please sign in to comment.