Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11009 - metalog.conf "crond" vs "cron"
Summary: metalog.conf "crond" vs "cron"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-20 11:43 UTC by Martijn Koster
Modified: 2003-10-16 19:57 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 Martijn Koster 2002-11-20 11:43:35 UTC
metalog.conf uses program name "crond" in it's Crond section.    
    
http://lists.gentoo.org/pipermail/gentoo-announce/2002-April/000151.html     
suggests that dcron is the Gentoo default, and that has a "crond".     
http://www.gentoo.org/doc/en/gentoo-x86-install.xml     
suggests using vcron, and that has a "cron" instead.  
It also recommends metalog.    
    
So if you use the recommended metalog and vcron together, 
you get cron messages only in /var/log/everything/, not /var/log/crond.    
    
I found that a little surprising. Not sure what (if anything) to do    
about it. Perhaps metalog's ebuild file should warn you to change  
metalog.conf if you use it with vcron?
Comment 1 Matt Keadle 2002-12-02 03:44:06 UTC
From what I can see:

dcron = crond
fcron = fcron
vcron = cron

So the only cron that will work out-o-the-box is dcron, while the other two need
.conf adjustments in metalog.

I'm wondering if it might do some good to switch:

program  = "crond"

to:

facility = "cron"

in metalog.conf. That should cover capture of all cron messages regardless of
which cron is being used. 
Comment 2 Martijn Koster 2002-12-02 07:52:37 UTC
Sounds good to me; I've changed my metalog.conf accordingly.

You might also consider using:

  logdir   = "/var/log/cron"

instead of:

  logdir   = "/var/log/crond"

although I could imagine such a change could cause some confusion.
Comment 3 Chris PeBenito (RETIRED) gentoo-dev 2003-10-15 20:09:23 UTC
Wow this bug has been idling around for a long time.  I've got facility =
"cron" in my config, and I use vcron fine.  I'll try to find out if it works
with d/fcron too.
Comment 4 Chris PeBenito (RETIRED) gentoo-dev 2003-10-16 19:57:14 UTC
Ok, this change is committed to CVS.  Vcron and fcron work with facility,
and I couldn't get dcron to log to syslog.  If dcron does log to syslog,
but not using the cron facility, then its got the problem.