summaryrefslogtreecommitdiff
blob: 004a0ab8356c289559eb9dd7d06b109c8d0b31fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

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

depend() {
	need localmount
	use net
}

description="Starts sccache build server"

command="/usr/bin/sccache-dist"
command_args="server ${SCCACHE_SERVER_CONF:+--config ${SCCACHE_SERVER_CONF}}"
command_background="true"
pidfile="/run/${RC_SVCNAME}.pid"
required_files="${SCCACHE_SERVER_CONF}"
start_stop_daemon_args="--env RUST_LOG=${SCCACHE_SERVER_LOGLEVEL:- }"