Created
January 15, 2018 13:18
-
-
Save bigmacd/be901daa66514ef6d2d530c022ca6853 to your computer and use it in GitHub Desktop.
CentOS 7/RHEL 7 service file for kafka
This file contains hidden or 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=Apache Kafka server (broker) | |
Documentation=http://kafka.apache.org/documentation.html | |
Requires=network.target remote-fs.target | |
After=network.target remote-fs.target zookeeper.service | |
[Service] | |
Type=simple | |
User=kafka | |
Group=kafka | |
Environment=JAVA_HOME=/etc/alternatives/jre | |
ExecStart=/opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties | |
ExecStop=/opt/kafka/bin/kafka-server-stop.sh | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't forget to:
# systemctl daemon-reload
# systemctl enable kafka
# systemctl start kafka