26 lines
687 B
Django/Jinja
26 lines
687 B
Django/Jinja
# Zookeeper unit - replaces zookeeperd package/initscript
|
|
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description = Zookeeper centralized coordination service
|
|
After = remote-fs.target network.target
|
|
AssertPathExists = /var/lib/zookeeper
|
|
StartLimitIntervalSec = 0
|
|
|
|
[Service]
|
|
Type = simple
|
|
User = zookeeper
|
|
Group = zookeeper
|
|
EnvironmentFile = -/etc/zookeeper/conf/environment
|
|
EnvironmentFile = -/etc/default/zookeeper
|
|
Restart = always
|
|
ExecStart = /usr/bin/java \
|
|
-cp $CLASSPATH \
|
|
$JAVA_OPTS \
|
|
-Dzookeeper.log.dir=${ZOO_LOG_DIR} \
|
|
-Dzookeeper.root.logger=${ZOO_LOG4J_PROP} \
|
|
$ZOOMAIN $ZOOCFG
|
|
|
|
[Install]
|
|
WantedBy = multi-user.target
|