Created
June 10, 2016 02:07
-
-
Save gambtho/a891b98b5c09dceccfa798df9718e8d9 to your computer and use it in GitHub Desktop.
kafka.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=Kafka | |
Documentation=http://kafka.apache.org | |
Requires=network.target remote-fs.target | |
After=network.target remote-fs.target | |
ConditionPathExists=/usr/libexec/kafka | |
ConditionPathExists=/opt/isv/var/kafka/kafka-logs | |
[Service] | |
Type=simple | |
PIDFile=/var/run/kafka.pid | |
User=kafka | |
Group=kafka | |
WorkingDirectory=/usr/libexec/kafka | |
ExecStart=/usr/libexec/kafka/bin/kafka-server-start.sh /usr/libexec/kafka/config/server.properties | |
ExecStop=/usr/libexec/kafka/bin/kafka-server-stop.sh | |
Restart=on-failure | |
SyslogIdentifier=kafka | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment