blob: 7241a1eefc64d3210b40bff6f869f4cfa02b4ed7 (
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
|
#!/sbin/runscript
# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/files/2.9/init,v 1.2 2003/08/08 20:31:11 lisa Exp $
depend() {
need net
}
start() {
rm -f ${DISTCCD_PIDFILE}
ebegin "Starting distccd"
DISTCC_TMPDIR="${DISTCC_TMPDIR}" \
PATH="$(gcc-config --get-bin-path):${PATH}" \
/sbin/start-stop-daemon --start --quiet \
--startas ${DISTCCD_EXEC} \
-c distcc --pidfile ${DISTCCD_PIDFILE} \
-- --pid-file ${DISTCCD_PIDFILE} ${DISTCCD_OPTS}
eend $?
}
stop() {
ebegin "Stopping distccd"
start-stop-daemon --stop --quiet --pidfile "${DISTCCD_PIDFILE}"
rm -f "${DISTCCD_PIDFILE}"
eend $?
}
|