summaryrefslogtreecommitdiff
path: root/bin/zkServer.sh
diff options
context:
space:
mode:
authorPatrick D. Hunt <phunt@apache.org>2012-06-30 06:04:48 +0000
committerPatrick D. Hunt <phunt@apache.org>2012-06-30 06:04:48 +0000
commit7921c4d4c663c22d3f233f2762d3ddab13214860 (patch)
tree1d82c39722a74839fb55bc05487cfd3e8d6fc9f3 /bin/zkServer.sh
parent51aba88122c95aa295beed3d23d57871c0567291 (diff)
downloadzookeeper-7921c4d4c663c22d3f233f2762d3ddab13214860.tar.gz
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)
git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1355641 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bin/zkServer.sh')
-rwxr-xr-xbin/zkServer.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/zkServer.sh b/bin/zkServer.sh
index 7482483dc..f752181f4 100755
--- a/bin/zkServer.sh
+++ b/bin/zkServer.sh
@@ -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