[Tfug] Automatic Update?

Harry McGregor micros at osef.org
Mon Sep 18 10:07:28 MST 2006


Why go to that trouble when the logrotate system can do it for you, just 
setup for that log file in /etc/logrotate.d

This is based on Debian, but I am sure that Fedora and RHEL both use 
logrotate as well.


                                Harry

Bexley Hall wrote:

>--- Jim Secan <jim at nwra.com> wrote:
>
>  
>
>>I found additional packages that were "updated"
>>according to the Logwatch
>>file, packages that were not actually updated.  I
>>looked more closely at
>>the yum.log in /var/log and voila - the yum log
>>doesn't list the year in
>>the date of the update and Logwatch apparently
>>assumes the current year.
>>So, things that were updated last year and listed in
>>the yum.log file are
>>being picked up by Logwatch as having been updated
>>this year.
>>
>>I guess the fix is to divide the yum.log up into
>>years, unless there's a
>>way to add the year so that Logwatch sees it.
>>    
>>
>
>Setup a crontab entry to cat 'date' to the end
>of the logfile every new year's eve (or, every
>month if you'd prefer a belts-and-braces approach!)
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>_______________________________________________
>Tucson Free Unix Group - tfug at tfug.org
>Subscription Options:
>http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>  
>





More information about the tfug mailing list