blob: 6f7150f94af990b2d3003a09a13e2ab0d40fcfa2 (
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
|
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/files/3.0/init,v 1.2 2008/10/25 06:39:17 matsuu Exp $
depend() {
need net
use avahi-daemon ypbind
}
start() {
ebegin "Starting distccd"
PATH="$(gcc-config --get-bin-path):${PATH}" \
start-stop-daemon --start --quiet --exec "${DISTCCD_EXEC}" -- \
--daemon --pid-file "${DISTCCD_PIDFILE}" --user distcc \
${DISTCCD_OPTS}
eend $?
}
stop() {
ebegin "Stopping distccd"
start-stop-daemon --stop --quiet --pidfile "${DISTCCD_PIDFILE}"
eend $?
}
|