[distcc] Re: Re: Re: Can't get distcc working properly, help!
Luke Guest
lguest at bubball.com
Fri Jul 11 09:49:43 GMT 2003
On Fri, 11 Jul 2003 18:12:43 +1000, Martin Pool wrote:
> What *specifically* is going wrong?
Well, the last error (on the other machine) was this:
Jul 10 16:40:12 laptop distccd[1508]: (dcc_pump_sendfile) ERROR: sendfile failed: Broken pipe
Jul 10 16:40:12 laptop distccd[1508]: (dcc_writex) ERROR: failed to write: Broken pipe
It looked like it was working (on the gnome monitor) for a while then it
stopped distributing completely.
I have it running through /etc/init.d (I hacked the acpi script) and I've
set up two symlinks (I can't remember exactly what to do with them, I'll look that one up),
here's my script:
#!/bin/bash
#
# /etc/rc.d/init.d/distccd
#
# Starts the distcc daemon
# Source function library.
. /etc/rc.d/init.d/functions
DAEMON=distcc
PROGNAME=${DAEMON}d
test -x /opt/distcc-2.7.1/bin/$PROGNAME || exit 0
RETVAL=0
#
# See how we were called.
#
start() {
# Check if it is already running
if [ ! -f /var/lock/subsys/$PROGNAME ]; then
export SCE=/usr/local/sce
export PATH=/opt/distcc-2.7.1/bin:$PATH
export DISTCCD_PATH=$SCE/bin:/$SCE/ee/gcc/bin:$SCE/iop/gcc/bin:$PATH
gprintf "Starting %s daemon: " "$DAEMON"
daemon /opt/distcc-2.7.1/bin/$PROGNAME
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$PROGNAME
echo
fi
return $RETVAL
}
stop() {
gprintf "Stopping %s daemon: " "$DAEMON"
killproc /opt/distcc-2.7.1/bin/$PROGNAME
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROGNAME
echo
return $RETVAL
}
restart() {
stop
start
}
reload() {
trap "" SIGHUP
killall -HUP $PROGNAME
}
case "$1" in
start)
start
;;
stop)
stop
;;
reload)
reload
;;
restart)
restart
;;
condrestart)
if [ -f /var/lock/subsys/$PROGNAME ]; then
restart
fi
;;
status)
status $PROGNAME
;;
*)
INITNAME=`basename $0`
gprintf "Usage: %s {start|stop|restart|condrestart|status}\n" "$INITNAME"
exit 1
esac
exit $RETVAL
More information about the distcc
mailing list