blob: d2b6e7c865d5c0cc2c82bc07ee9f365b11372ccd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
[Unit]
Description=Kafka publish-subscribe messaging system
Requires=zookeeper@kafka.service
After=network.target zookeeper@kafka.service
[Service]
User=kafka
Group=kafka
SyslogIdentifier=kafka
ExecStart=/usr/bin/java \
-Xmx1G -Xms1G -server \
-XX:+UseCompressedOops \
-XX:+UseG1GC \
-XX:+DisableExplicitGC \
-Djava.awt.headless=true \
-verbose:gc \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
-Dkafka.logs.dir=/var/log/kafka \
-Dlog4j.configuration=file:/etc/kafka/log4j.properties \
-cp /usr/share/java/kafka/* \
kafka.Kafka \
/etc/kafka/server.properties
[Install]
WantedBy=multi-user.target
|