<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>100243</bug_id>
          
          <creation_ts>2005-07-25 08:47 0000</creation_ts>
          <short_desc>logwatch: change /etc/cron.daily/logwatch to /etc/cron.daily/0logwatch to make it run first</short_desc>
          <delta_ts>2005-07-25 22:19:41 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>brian@braverock.com</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>brian@braverock.com</who>
            <bug_when>2005-07-25 08:47:46 0000</bug_when>
            <thetext>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 &apos;0logwatch&apos; 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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brian@braverock.com</who>
            <bug_when>2005-07-25 08:49:41 0000</bug_when>
            <thetext>Lowering priority from P2 to P3, as this is an ebuild change that should be
trivial to make.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-07-25 22:19:41 0000</bug_when>
            <thetext>done in 6.1.2, thanks</thetext>
          </long_desc>
      
    </bug>

</bugzilla>