diff options
author | Patrick Lauer <patrick@gentoo.org> | 2021-02-08 10:43:19 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2021-02-08 10:43:45 +0000 |
commit | 94ff9f52078f6942cdd3b833f4dc980307ccd698 (patch) | |
tree | 530335b6b7804faf5d764acc8a78b7c4762a38e8 /net-misc/kafka-bin/files | |
parent | dev-haskell/derive: remove package and it's app-forensics/quickfuzz revdep (diff) | |
download | gentoo-94ff9f52078f6942cdd3b833f4dc980307ccd698.tar.gz gentoo-94ff9f52078f6942cdd3b833f4dc980307ccd698.tar.bz2 gentoo-94ff9f52078f6942cdd3b833f4dc980307ccd698.zip |
net-misc/kafka-bin: Bump
Adds kafka-connect init script
Thanks to Julien Surloppe
Incorporates most changes from https://github.com/gentoo/gentoo/pull/18224/
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'net-misc/kafka-bin/files')
-rw-r--r-- | net-misc/kafka-bin/files/kafka-connect-distributed.init.d | 28 | ||||
-rw-r--r-- | net-misc/kafka-bin/files/kafka.init.d.5 | 28 |
2 files changed, 56 insertions, 0 deletions
diff --git a/net-misc/kafka-bin/files/kafka-connect-distributed.init.d b/net-misc/kafka-bin/files/kafka-connect-distributed.init.d new file mode 100644 index 000000000000..0a61c7d017eb --- /dev/null +++ b/net-misc/kafka-bin/files/kafka-connect-distributed.init.d @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Kafka Connect of Kafka distributed messaging system" + +logfile="/var/log/kafka/connect-distributed.log" + +command="/opt/kafka/bin/connect-distributed.sh" +command_args="/etc/kafka/connect-distributed.properties" +command_background=yes +command_user="kafka:kafka" + +pidfile=/run/kafka-connect-distributed.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 kafka +}
\ No newline at end of file diff --git a/net-misc/kafka-bin/files/kafka.init.d.5 b/net-misc/kafka-bin/files/kafka.init.d.5 new file mode 100644 index 000000000000..3ee2aa9797ee --- /dev/null +++ b/net-misc/kafka-bin/files/kafka.init.d.5 @@ -0,0 +1,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 +} |