aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kubernetes/kube-proxy.initd
blob: 3de243d243ecde4c9ef93e83f6822ea0e3cbe959 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run
# Copyright 2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

supervisor=supervise-daemon
description="Kubernetes Proxy service"

if [ -e /var/lib/kubernetes/kube-proxy-flags.env ]; then
	. /var/lib/kubernetes/kube-proxy-flags.env;
fi

command="/usr/bin/kube-proxy"
command_args="${command_args} ${KUBE_PROXY_ARGS}"
: ${output_log:=/var/log/$RC_SVCNAME/$RC_SVCNAME.log}
: ${error_log:=/var/log/$RC_SVCNAME/$RC_SVCNAME.log}

depend() {
	after net
}