title: change the path of the log4j.properties for zookeeper
body: <p>I would like to change the path of <code>log4j.properties</code> file for zookeeper because I want to read this config file too from a central configuration folder, but I have not found any info on how to do it.</p>
  
  <p>This is how I start zookeeper:</p>
  
  <pre><code>$1/bin/zkServer.sh start $2/zoo.cfg
  </code></pre>
  
  <p>where</p>
  
  <ul>
  <li>$1: the home directory of the unpacked zookeeper</li>
  <li>$2: holds the zookeeper config files</li>
  </ul>
  
  <p>What I do now is a silly solution:</p>
  
  <ul>
  <li>Before I start zookeeper I copy this file to zookeeper home directory: <code>cp $2/log4j.properties $1/conf</code> </li>
  </ul>
  
  <p>Is there any better way to configure the usage of an external log4j.properties file?</p>