Last active
June 10, 2016 13:58
-
-
Save gambtho/974f51ccc9cd1107df028d10de2bfdda to your computer and use it in GitHub Desktop.
zookeeper.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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