Bug 100243 - logwatch: change /etc/cron.daily/logwatch to /etc/cron.daily/0logwatch to make it run first
Bug#: 100243 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P3
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: brian@braverock.com
Component: Ebuilds
URL: 
Summary: logwatch: change /etc/cron.daily/logwatch to /etc/cron.daily/0logwatch to make it run first
Keywords:  
Status Whiteboard: 
Opened: 2005-07-25 08:47 0000
Description:   Opened: 2005-07-25 08:47 0000
the logwatch ebuild installs a file 
/etc/cron.daily/logwatch

This file should be renamed to /etc/cron.daily/0logwatch

When logwatch and a log rotation program like logrotate are both installed, the
log rotation may happen before the logwatch scan becasue scripts in cron.* are
run in alphabetical order.

Chagning the name of the logwatch script to '0logwatch' should resolve this
problem by making the logwatch run first on the daily cron rotation.  Many other
distributions already do this, and Gentoo should follow suit.

Reproducible: Always
Steps to Reproduce:
1. emerge logwatch
2. emerge logrotate
3. set a daily log rotation cycle for logrotate (e.g. high volume site)
4. watch logwatch return nothing, as your logs have been rotated out



Expected Results:  
Logwatch should run first in the cron rotation, before any log trimming or
rotation program has an opportunity to trim/rotate the logs

------- Comment #1 From Brian G. Peterson 2005-07-25 08:49:41 0000 -------
Lowering priority from P2 to P3, as this is an ebuild change that should be
trivial to make.

------- Comment #2 From SpanKY 2005-07-25 22:19:41 0000 -------
done in 6.1.2, thanks