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

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

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

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

depend() {
	after net
}