Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61090 - distcc shouldn't send messages to syslog
Summary: distcc shouldn't send messages to syslog
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Lisa Seelye (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-20 18:14 UTC by nile
Modified: 2004-08-20 18:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.