Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 61090

Summary: distcc shouldn't send messages to syslog
Product: Gentoo Linux Reporter: nile <automaticbox>
Component: Current packagesAssignee: Lisa Seelye (RETIRED) <lisa>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description nile 2004-08-20 18:14:39 UTC
Distcc shouldn't fill syslog with a bunch of random messages. Output should be directed to a log file (/var/log/distcc.log works well). 

Reproducible: Always
Steps to Reproduce:
1. Start distccd server
2. Get jobs
3. Watch logs fill up

Actual Results:  
/var/log/messages gets huge, people tailing /var/log/messages get annoyed, lots
of other stuff =P

Expected Results:  
Distcc should direct log messages to a log file.

This is from the man page for distccd:
       --log-file FILE
              Send  messages to file FILE instead of syslog.  Logging directly
              to a file is significantly faster than going via syslog  and  is
              recommended.
Okay! My really ugly and dirty hack to fix this was adding the "--log-file" line
to /etc/init.d/distccd:        
/sbin/start-stop-daemon --start --quiet --startas ${DISTCCD_EXEC} \
        --pidfile ${DISTCCD_PIDFILE} -- \
        --pid-file ${DISTCCD_PIDFILE} -N ${DISTCCD_NICE} --user distcc \
        --log-file /var/log/distccd.log

A prettier fix would be to set a log file option in /etc/conf.d/distccd.
Comment 1 Ciaran McCreesh 2004-08-20 18:25:14 UTC
Uh, can't you just set your syslogger to ignore distcc if you don't want it?
Comment 2 Lisa Seelye (RETIRED) gentoo-dev 2004-08-20 18:28:34 UTC
This is not a bug.

Edit your logger config file or use --log-file.