summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/kubernetes/files/kubelet.initd')
-rw-r--r--sys-cluster/kubernetes/files/kubelet.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-cluster/kubernetes/files/kubelet.initd b/sys-cluster/kubernetes/files/kubelet.initd
new file mode 100644
index 000000000000..363f635b5863
--- /dev/null
+++ b/sys-cluster/kubernetes/files/kubelet.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 2016-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Kubelet, a Kubernetes node agent"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-root}
+group=${group:-root}
+
+command="/usr/bin/kubelet"
+command_args="${command_args}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/kubelet/${RC_SVCNAME}.log \
+ --stderr /var/log/kubelet/${RC_SVCNAME}.log"
+
+depend() {
+ after net
+}