[distcc] distcc with xinetd... how?

Martin Pool mbp at samba.org
Thu Aug 8 01:46:02 GMT 2002


On  7 Aug 2002, Brian Hall <brianwhall at pcisys.net> wrote:
> 
> What is the magic incantation to get distcc to be spawned correctly from
> xinetd? No matter what username I specify in the stanza, distcc always
> tries to create subdirs in /root/tmp for its temp files. How do I get
> around this? (see sample at the very bottom)

distcc respects the $TMPDIR environment variable when creating its
scratch directory.  I suspect you have that set in root's .profile.
If you unset it in the shell script that launches xinetd, or set it to
something not in root's path, then it should be fine.

> Aug  7 21:30:34 server distccd[11493]: ERROR: (dcc_r_file) failed to
> create /root/tmp/distcc_000001f5/server_0011493.i: Permission denied
> Aug  7 21:30:34 server distccd[11493]: (dcc_exit) exit: code -1; self:
> 0.010000 user 0.000000 sys; children: 0.000000 user 0.000000 sys
> Aug  7 21:30:34 server distccd[11493]: (dcc_cleanup_tempfiles) cleanup
> /root/tmp/distcc_000001f5/server_0011493.i failed: Permission denied
> Aug  7 21:30:34 server distccd[11493]: (dcc_cleanup_tempfiles) cleanup
> /root/tmp/distcc_000001f5/server_0011493.out failed: Permission denied
> Aug  7 21:30:34 server distccd[11493]: (dcc_cleanup_tempfiles) cleanup
> /root/tmp/distcc_000001f5/cc_0011493.err failed: Permission denied
> Aug  7 21:30:34 server distccd[11493]: (dcc_cleanup_tempfiles) cleanup
> /root/tmp/distcc_000001f5/cc_0011493.out failed: Permission denied

-- 
Martin 



More information about the distcc mailing list