Skip to content

Instantly share code, notes, and snippets.

@atrepca
Created September 27, 2016 13:53
Show Gist options
  • Save atrepca/c3e811d6cc6529992a7281d6dcdd54be to your computer and use it in GitHub Desktop.
Save atrepca/c3e811d6cc6529992a7281d6dcdd54be to your computer and use it in GitHub Desktop.
Kafka Systemd Service Configuration File for Ubuntu 16.04
[Unit]
Description=Apache Kafka server (broker)
Documentation=http://kafka.apache.org/documentation.html
Requires=network.target remote-fs.target
After=network.target remote-fs.target
[Service]
Type=simple
PIDFile=/var/run/kafka.pid
User=kafka
Group=kafka
ExecStart=/opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
ExecStop=/opt/kafka/bin/kafka-server-stop.sh
Restart=on-failure
SyslogIdentifier=kafka
[Install]
WantedBy=multi-user.target
@atrepca
Copy link
Author

atrepca commented Nov 19, 2019

I'm using this successfully for Kafka version 0.11.0.0 on Ubuntu 16.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment