Package: logwatch
Version: 7.3.6.cvs20090906-1
Severity: normal
Tags: patch

Hello, was originally reported in Ubuntu here:

https://launchpad.net/bugs/719898


Quote from original bug report by Oliver Brakmann:

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!

-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-5-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- debian/dist.conf/services/cron.conf.orig    2011-02-16 10:33:44.390706236 
+0100
+++ debian/dist.conf/services/cron.conf 2011-02-16 10:33:54.050727896 +0100
@@ -1,3 +1,3 @@
 LogFile = syslog
-*OnlyService = (CROND|\/USR\/SBIN\/CRON|\/usr\/sbin\/cron)
+*OnlyService = (CRON|cron|CROND|\/USR\/SBIN\/CRON|\/usr\/sbin\/cron)
 

Reply via email to