Public bug reported:

Binary package hint: logwatch

Hello,

Debian/Ubuntu ships a cron service definition (in
dist.conf/services/cron), which does not match any cron logfile entries
due to a wrong "OnlyService" statement in said service definition.

Currently, it looks like this:
*OnlyService = (CROND|\/USR\/SBIN\/CRON|\/usr\/sbin\/cron)

However, the logfile entries for cron look like this, so they don't match:
Feb 16 09:11:11 deimos cron[641]: (CRON) INFO (pidfile fd = 3)
Feb 16 09:11:11 deimos cron[654]: (CRON) STARTUP (fork ok)
Feb 16 09:11:11 deimos cron[654]: (CRON) INFO (Running @reboot jobs)
Feb 16 09:17:01 deimos CRON[923]: (root) CMD (   cd / && run-parts --report 
/etc/cron.hourly)

I suggest changing the OnlyService statement to this (patch attached):
*OnlyService = (CRON|cron|CROND|\/USR\/SBIN\/CRON|\/usr\/sbin\/cron)

This applies to all Ubuntu releases, from at least Lucid to Natty.

Thanks!

** Affects: logwatch (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/719898

Title:
  logwatch does not report cron events

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to