[Yum-devel] yum cron ordering

Orion Poplawski orion at cora.nwra.com
Fri Apr 6 17:26:37 UTC 2012

On 03/23/2012 01:41 PM, Matthew Miller wrote:
> On Fri, Mar 23, 2012 at 03:28:18PM -0400, James Antill wrote:
>> On Fri, 2012-03-23 at 10:38 -0600, Orion Poplawski wrote:
>>> On 03/16/2012 10:58 AM, Orion Poplawski wrote:
>>>> With the reorg of yum-cron back in July, the ordering in cron.daily was
>>>> changed from 0yum.cron to yum-update. Having yum-cron run earlier was a change
>>>> made for reasons outlined in
>>>> https://bugzilla.redhat.com/show_bug.cgi?id=445894, namely to run before
>>>> makewhatis, mlocate, prelink, rpm, etc. I still think these are relevant.
>>>> Were there corresponding reasons for moving it back?
>>> Anyone?
>>   My guess is that it was an accident ... Matthew?
> Yes, I think it's by accident. Somewhat relevant from the git log:
>    commit 2592de5f05c060b906ee8089b841d0fe40f3ed5d
>    Author: Matthew Miller<mattdm at mattdm.org>
>    Date:   Thu Jul 28 16:56:03 2011 -0400
>        Previously, the entire yum-cron shell script lived in /etc/cron.daily,
>        using options set in /etc/sysconfig/yum-cron to further restrict the
>        days when updates and cleanup are done. This moves the main
>        functionality to a stand-alone shell script, but the logic for
>        days-to-run stays in the cron scripts. That keeps everything
>        compatible and is nice and simple, but also allows one to replace the
>        cron configuration with, for example, updates which run multiple times
>        per day.
>        The current possible actions for yum-cron are update and cleanup;
>        update has special-case code to handle check-only or download-only;
>        cleanup just runs the commands in cleanup.yum. It would be easy to add
>        other such actions.
> This happened because locally we run the update every hour, and so its
> ordering in the daily rotation didn't really occur to me -- mea culpa.

How does this seem?

Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder Office                  FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0yum.patch
Type: text/x-patch
Size: 1630 bytes
Desc: not available
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20120406/80638f45/attachment.bin>

More information about the Yum-devel mailing list