/[gentoo-alt]/trunk/overlay/sys-devel/distcc/files/2.18/init
Gentoo

Contents of /trunk/overlay/sys-devel/distcc/files/2.18/init

Parent Directory Parent Directory | Revision Log Revision Log


Revision 832 - (show annotations) (download)
Sat Oct 15 14:32:27 2005 UTC (9 years, 4 months ago) by flameeyes
File size: 733 byte(s)
Added distcc that does not check for useradd to work on Gentoo/FreeBSD. Also remove shadow dependency.
1 #!/sbin/runscript
2 # $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/files/2.18/init,v 1.1 2004/10/12 17:21:43 lisa Exp $
3
4 depend() {
5 need net
6 use ypbind
7 }
8
9 start() {
10 [ -e "${DISTCCD_PIDFILE}" ] && rm -f ${DISTCCD_PIDFILE} &>/dev/null
11
12 ebegin "Starting distccd"
13 chown distcc `dirname ${DISTCCD_PIDFILE}` &>/dev/null
14 TMPDIR="${TMPDIR}" \
15 PATH="$(gcc-config --get-bin-path):${PATH}" \
16 /sbin/start-stop-daemon --start --quiet --startas ${DISTCCD_EXEC} \
17 --pidfile ${DISTCCD_PIDFILE} -- \
18 --pid-file ${DISTCCD_PIDFILE} -N ${DISTCCD_NICE} --user distcc \
19 ${DISTCCD_OPTS}
20
21 eend $?
22 }
23
24 stop() {
25 ebegin "Stopping distccd"
26 start-stop-daemon --stop --quiet --pidfile "${DISTCCD_PIDFILE}"
27 rm -f "${DISTCCD_PIDFILE}"
28 eend $?
29 }

  ViewVC Help
Powered by ViewVC 1.1.20