Davanum Srinivas | 33a96ff | 2015-11-02 17:23:39 -0500 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 13 | # implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | |
| 18 | # Modified from http://packages.ubuntu.com/saucy/zookeeperd |
| 19 | NAME=zookeeper |
| 20 | ZOOCFGDIR=/etc/zookeeper/conf |
| 21 | |
| 22 | # seems, that log4j requires the log4j.properties file to be in the classpath |
| 23 | CLASSPATH="$ZOOCFGDIR:/usr/share/java/jline.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/netty.jar:/usr/share/java/slf4j-api.jar:/usr/share/java/slf4j-log4j12.jar:/usr/share/java/zookeeper.jar" |
| 24 | |
| 25 | ZOOCFG="$ZOOCFGDIR/zoo.cfg" |
| 26 | ZOO_LOG_DIR=/var/log/zookeeper |
| 27 | USER=$NAME |
| 28 | GROUP=$NAME |
| 29 | PIDDIR=/var/run/$NAME |
| 30 | PIDFILE=$PIDDIR/$NAME.pid |
| 31 | SCRIPTNAME=/etc/init.d/$NAME |
| 32 | JAVA=/usr/bin/java |
| 33 | ZOOMAIN="org.apache.zookeeper.server.quorum.QuorumPeerMain" |
| 34 | ZOO_LOG4J_PROP="INFO,ROLLINGFILE" |
| 35 | JMXLOCALONLY=false |
| 36 | JAVA_OPTS="" |