Bug 11009 - metalog.conf "crond" vs "cron"
Bug#: 11009 Product:  Gentoo Linux Version: 1.2 Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: pebenito@gentoo.org Reported By: mak-gentoo-bugzilla@greenhills.co.uk
Component: Applications
URL: 
Summary: metalog.conf "crond" vs "cron"
Keywords:  
Status Whiteboard: 
Opened: 2002-11-20 11:43 0000
Description:   Opened: 2002-11-20 11:43 0000
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 From Matt Keadle 2002-12-02 03:44:06 0000 -------
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 From Martijn Koster 2002-12-02 07:52:37 0000 -------
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 From Chris PeBenito 2003-10-15 20:09:23 0000 -------
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 From Chris PeBenito 2003-10-16 19:57:14 0000 -------
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.