diff options
Diffstat (limited to 'dev-util/sccache/files/scheduler.initd')
-rwxr-xr-x | dev-util/sccache/files/scheduler.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-util/sccache/files/scheduler.initd b/dev-util/sccache/files/scheduler.initd new file mode 100755 index 000000000000..fd4d616a6bd6 --- /dev/null +++ b/dev-util/sccache/files/scheduler.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 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="scheduler ${SCCACHE_SCHEDULER_CONF:+--config ${SCCACHE_SCHEDULER_CONF}}" +command_background="true" +pidfile="/run/${RC_SVCNAME}.pid" +required_files="${SCCACHE_SCHEDULER_CONF}" +start_stop_daemon_args="--env RUST_LOG=${SCCACHE_SCHEDULER_LOGLEVEL:- }" |