summaryrefslogtreecommitdiff
blob: b5c87fa1de5166cabb716d83b8023b7903516152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

description="Zookeeper for Kafka distributed messaging system"

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

command="/opt/kafka/bin/zookeeper-server-start.sh"
command_args="/etc/kafka/zookeeper.properties"
start_stop_daemon_args="--chdir /opt/kafka --stdout $logfile --stderr $logfile"

command_background=yes
pidfile=/run/kafka-zookeeper.pid

depend() {
	need net
	after bootmisc
}