pvc-ansible/roles/pvc/templates/zookeeper/zookeeper.service.j2
Joshua M. Boniface 15a2bf1418 Add custom systemd unit for Zookeeper
We're 100% systemd here, and the lack of control/information that the
old-school ZK initscript provides is frustrating. Replace it with our
own simple unit file.
2023-09-01 15:42:21 -04:00

24 lines
644 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
[Service]
Type = simple
User = zookeeper
Group = zookeeper
EnvironmentFile = -/etc/zookeeper/conf/environment
EnvironmentFile = -/etc/default/zookeeper
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