diff options
author | Patrick Lauer <patrick@gentoo.org> | 2018-03-10 16:03:12 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2018-03-10 16:06:18 +0000 |
commit | 1916c7bcce8deb2116560d10c1404ddf12cfc0e1 (patch) | |
tree | 0584d70b44b9617672df5a68e90599089d54986f /net-misc/kafka-bin/files | |
parent | dev-cpp/ms-gsl: version bump 0_pre20180304 (diff) | |
download | gentoo-1916c7bcce8deb2116560d10c1404ddf12cfc0e1.tar.gz gentoo-1916c7bcce8deb2116560d10c1404ddf12cfc0e1.tar.bz2 gentoo-1916c7bcce8deb2116560d10c1404ddf12cfc0e1.zip |
net-misc/kafka-bin: Bump, fix init script, remove old
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-misc/kafka-bin/files')
-rw-r--r-- | net-misc/kafka-bin/files/kafka.init.d | 18 | ||||
-rwxr-xr-x | net-misc/kafka-bin/files/kafka.init.d.2 | 22 | ||||
-rw-r--r-- | net-misc/kafka-bin/files/kafka.init.d.4 (renamed from net-misc/kafka-bin/files/kafka.init.d.3) | 4 |
3 files changed, 3 insertions, 41 deletions
diff --git a/net-misc/kafka-bin/files/kafka.init.d b/net-misc/kafka-bin/files/kafka.init.d deleted file mode 100644 index 3b23a7fac7c9..000000000000 --- a/net-misc/kafka-bin/files/kafka.init.d +++ /dev/null @@ -1,18 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# 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" -start_stop_daemon_args="--user kafka --chdir /opt/kafka --stdout $logfile --stderr $logfile" - -command_background=yes -pidfile=/run/kafka.pid - -depend() { - after zookeeper kafka-zookeeper -} diff --git a/net-misc/kafka-bin/files/kafka.init.d.2 b/net-misc/kafka-bin/files/kafka.init.d.2 deleted file mode 100755 index 87b4b47a4469..000000000000 --- a/net-misc/kafka-bin/files/kafka.init.d.2 +++ /dev/null @@ -1,22 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2017 Gentoo Foundation -# 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 -pidfile=/run/kafka.pid - -start() { - start-stop-daemon --start --background --user kafka --chdir /opt/kafka --stdout $logfile --stderr $logfile \ - --env KAFKA_HEAP_OPTS="${KAFKA_HEAP_OPTS}" \ - --pidfile $pidfile --exec /opt/kafka/bin/kafka-server-start.sh -- /etc/kafka/server.properties -} -depend() { - after zookeeper kafka-zookeeper -} diff --git a/net-misc/kafka-bin/files/kafka.init.d.3 b/net-misc/kafka-bin/files/kafka.init.d.4 index c355f21612ca..064821f669de 100644 --- a/net-misc/kafka-bin/files/kafka.init.d.3 +++ b/net-misc/kafka-bin/files/kafka.init.d.4 @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 description="Kafka distributed messaging system" @@ -13,9 +13,11 @@ command_background=yes pidfile=/run/kafka.pid start() { + ebegin "Starting kafka ..." start-stop-daemon --start --background --user kafka --chdir /opt/kafka --stdout $logfile --stderr $logfile \ -m --env KAFKA_HEAP_OPTS="${KAFKA_HEAP_OPTS}" \ --pidfile $pidfile --exec /opt/kafka/bin/kafka-server-start.sh -- /etc/kafka/server.properties + eend $? } depend() { after zookeeper kafka-zookeeper |