zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ph...@apache.org
Subject svn commit: r1355641 - in /zookeeper/trunk: CHANGES.txt bin/zkServer.sh
Date Sat, 30 Jun 2012 06:04:49 GMT
Author: phunt
Date: Sat Jun 30 06:04:48 2012
New Revision: 1355641

URL: http://svn.apache.org/viewvc?rev=1355641&view=rev
Log:
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)

Modified:
    zookeeper/trunk/CHANGES.txt
    zookeeper/trunk/bin/zkServer.sh

Modified: zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1355641&r1=1355640&r2=1355641&view=diff
==============================================================================
--- zookeeper/trunk/CHANGES.txt (original)
+++ zookeeper/trunk/CHANGES.txt Sat Jun 30 06:04:48 2012
@@ -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,

Modified: zookeeper/trunk/bin/zkServer.sh
URL: http://svn.apache.org/viewvc/zookeeper/trunk/bin/zkServer.sh?rev=1355641&r1=1355640&r2=1355641&view=diff
==============================================================================
--- zookeeper/trunk/bin/zkServer.sh (original)
+++ zookeeper/trunk/bin/zkServer.sh Sat Jun 30 06:04:48 2012
@@ -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



Mime
View raw message