Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100243 - logwatch: change /etc/cron.daily/logwatch to /etc/cron.daily/0logwatch to make it run first
Summary: logwatch: change /etc/cron.daily/logwatch to /etc/cron.daily/0logwatch to mak...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-25 08:47 UTC by Brian G. Peterson
Modified: 2005-07-25 22:19 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 Brian G. Peterson 2005-07-25 08:47:46 UTC
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 Brian G. Peterson 2005-07-25 08:49:41 UTC
Lowering priority from P2 to P3, as this is an ebuild change that should be
trivial to make.
Comment 2 SpanKY gentoo-dev 2005-07-25 22:19:41 UTC
done in 6.1.2, thanks