summaryrefslogtreecommitdiff
blob: 3ee2aa9797eeb0917818442ff129338b845515f9 (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
28
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

description="Kafka distributed messaging system"

logfile="/var/log/kafka/kafka.log"

command="/opt/kafka/bin/kafka-server-start.sh"
command_args="/etc/kafka/server.properties"
command_background=yes
command_user="kafka:kafka"

pidfile=/run/kafka.pid

start_stop_daemon_args="--stdout $logfile --stderr $logfile
--env CLASSPATH=\"${CLASSPATH}\"
--env KAFKA_LOG4J_OPTS=\"${KAFKA_LOG4J_OPTS}\"
--env KAFKA_OPTS=\"${KAFKA_OPTS}\"
--env KAFKA_JMX_OPTS=\"${KAFKA_JMX_OPTS}\"
--env JMX_PORT=\"${JMX_PORT}\"
--env KAFKA_HEAP_OPTS=\"${KAFKA_HEAP_OPTS}\"
--env KAFKA_JVM_PERFORMANCE_OPTS=\"${KAFKA_JVM_PERFORMANCE_OPTS}\"
"

depend() {
       after zookeeper kafka-zookeeper
}