blob: afa2d2f89f3809440f32c5c430e014d5fdaf84a8 [file] [log] [blame]
rdudyalab086cf32016-08-11 00:07:45 -04001#
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
19NAME=zookeeper
20ZOOCFGDIR=/etc/zookeeper/conf
21
22# seems, that log4j requires the log4j.properties file to be in the classpath
23CLASSPATH="$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
25ZOOCFG="$ZOOCFGDIR/zoo.cfg"
26ZOO_LOG_DIR=/var/log/zookeeper
27USER=$NAME
28GROUP=$NAME
29PIDDIR=/var/run/$NAME
30PIDFILE=$PIDDIR/$NAME.pid
31SCRIPTNAME=/etc/init.d/$NAME
32JAVA=/usr/bin/java
33ZOOMAIN="org.apache.zookeeper.server.quorum.QuorumPeerMain"
34ZOO_LOG4J_PROP="INFO,ROLLINGFILE"
35JMXLOCALONLY=false
36JAVA_OPTS=""