Skip to content

Instantly share code, notes, and snippets.

@gambtho
Last active June 10, 2016 13:58
Show Gist options
  • Save gambtho/974f51ccc9cd1107df028d10de2bfdda to your computer and use it in GitHub Desktop.
Save gambtho/974f51ccc9cd1107df028d10de2bfdda to your computer and use it in GitHub Desktop.
zookeeper.service
[Unit]
Description=Zookeeper
Documentation=http://zookeeper.apache.org
Requires=network.target remote-fs.target
After=network.target remote-fs.target
ConditionPathExists=/usr/libexec/kafka
ConditionPathExists=/opt/isv/var/kafka/zookeeper
[Service]
Type=simple
PIDFile=/var/run/zookeeper.pid
User=kafka
Group=kafka
WorkingDirectory=/usr/libexec/kafka
ExecStart=/usr/libexec/kafka/bin/zookeeper-server-start.sh /usr/libexec/kafka/config/zookeeper.properties
ExecStop=/usr/libexec/kafka/bin/zookeeper-server-stop.sh
Restart=on-failure
SyslogIdentifier=zookeeper
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment