Skip to content

Instantly share code, notes, and snippets.

@zaftzaft
Last active January 1, 2019 09:02
Show Gist options
  • Save zaftzaft/4bd7aca4bbaca5af0869dc1f8efbb6fa to your computer and use it in GitHub Desktop.
Save zaftzaft/4bd7aca4bbaca5af0869dc1f8efbb6fa to your computer and use it in GitHub Desktop.
[Unit]
Description=Kafka publish-subscribe messaging system
Requires=zookeeper@kafka.service
After=network.target zookeeper@kafka.service
[Service]
ExecStart=/opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
[Install]
WantedBy=multi-user.target
[Unit]
Description=Zookeeper distributed coordination server (%i)
After=network.target
[Service]
ExecStart=/opt/kafka/bin/zookeeper-server-start.sh /opt/kafka/config/zookeeper.properties
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment