Skip to content

Instantly share code, notes, and snippets.

@gambtho
Created June 10, 2016 02:07
Show Gist options
  • Save gambtho/a891b98b5c09dceccfa798df9718e8d9 to your computer and use it in GitHub Desktop.
Save gambtho/a891b98b5c09dceccfa798df9718e8d9 to your computer and use it in GitHub Desktop.
kafka.service
[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