blob: 783c0651e78442ecd3e9bb91716d20f60108a5b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need net
use avahi-daemon ypbind
}
start() {
ebegin "Starting distccd"
if [ ! -e /var/run/distccd ] ; then
mkdir -p /var/run/distccd
chown distcc:daemon /var/run/distccd
fi
# Load PATH and GCC_SPECS from gcc-config, bug #262773
eval "$(gcc-config -E)"
start-stop-daemon --start --quiet --exec "${DISTCCD_EXEC}" --user distcc -- \
--daemon --pid-file "${DISTCCD_PIDFILE}" \
${DISTCCD_OPTS}
eend $?
}
stop() {
ebegin "Stopping distccd"
start-stop-daemon --stop --quiet --pidfile "${DISTCCD_PIDFILE}"
eend $?
}
|