summaryrefslogtreecommitdiff
path: root/dev-util/sccache/files/scheduler.initd
blob: dc0ca5a5e7bc7ad0c8bc786a9a94a19ef3c26eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

SCCACHE_SCHEDULER_CONF="${SCCACHE_SCHEDULER_CONF:-/etc/sccache/scheduler.conf}"

depend() {
	need localmount
	use net
}

description="Starts sccache build scheduler server"

command="/usr/bin/sccache-dist"
command_args="--config ${SCCACHE_SCHEDULER_CONF} ${SCCACHE_SCHEDULER_LOGLEVEL:+--syslog ${SCCACHE_SCHEDULER_LOGLEVEL}}"
procname="${command} scheduler"
required_files="${SCCACHE_SCHEDULER_CONF}"