aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kubernetes/kube-proxy.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/kubernetes/kube-proxy.initd')
-rw-r--r--testing/kubernetes/kube-proxy.initd20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/kubernetes/kube-proxy.initd b/testing/kubernetes/kube-proxy.initd
new file mode 100644
index 0000000000..e9d2c0e48e
--- /dev/null
+++ b/testing/kubernetes/kube-proxy.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Kubernetes Proxy service"
+pidfile=${pidfile:-"/run/${SVCNAME}.pid"}
+user=${user:-root}
+group=${group:-root}
+
+command="/usr/bin/kube-proxy"
+command_args="${command_args}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/${SVCNAME}/${SVCNAME}.log \
+ --stderr /var/log/${SVCNAME}/${SVCNAME}.log"
+
+depend() {
+ after net
+}
+