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<mat...@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                       or...@nwra.com
Boulder, CO 80301                   http://www.nwra.com
diff --git a/yum-cron/Makefile b/yum-cron/Makefile
index d68659a..e24dd81 100644
--- a/yum-cron/Makefile
+++ b/yum-cron/Makefile
@@ -10,7 +10,7 @@ install:
 	mkdir -p $(DESTDIR)/usr/sbin
 	mkdir -p $(DESTDIR)/etc/sysconfig
 	mkdir -p $(DESTDIR)/usr/share/yum-cron
-	install -D -m 755 yum-update.cron.sh $(DESTDIR)/etc/cron.daily/yum-update.cron
+	install -D -m 755 yum-update.cron.sh $(DESTDIR)/etc/cron.daily/0yum-update.cron
 	install -D -m 755 yum-cleanup.cron.sh $(DESTDIR)/etc/cron.daily/yum-cleanup.cron
 	install -D -m 755 yum-cron.sysvinit $(DESTDIR)/etc/rc.d/init.d/yum-cron
 	install -D -m 755 yum-cron.sh $(DESTDIR)/usr/sbin/yum-cron
diff --git a/yum-cron/yum-cron.sysconfig b/yum-cron/yum-cron.sysconfig
index 4c8c40d..53477d3 100644
--- a/yum-cron/yum-cron.sysconfig
+++ b/yum-cron/yum-cron.sysconfig
@@ -51,7 +51,7 @@ MAILTO=root
 #SYSTEMNAME="" 
 
 # Scheduling Options (used by the default cron scripts,
-# /etc/cron.daily/yum-cleanup.cron and /etc/cron.daily/yum-update.cron)
+# /etc/cron.daily/yum-cleanup.cron and /etc/cron.daily/0yum-update.cron)
 # 
 #   Note that if you use a different cron configuration (for example,
 #   removing the default scripts and adding an entry in /etc/cron.d),
diff --git a/yum.spec b/yum.spec
index 572112a..65c62a9 100644
--- a/yum.spec
+++ b/yum.spec
@@ -277,7 +277,7 @@ exit 0
 %files cron
 %defattr(-,root,root)
 %doc COPYING
-%config(noreplace) %{_sysconfdir}/cron.daily/yum-update.cron
+%config(noreplace) %{_sysconfdir}/cron.daily/0yum-update.cron
 %config(noreplace) %{_sysconfdir}/cron.daily/yum-cleanup.cron
 %{_sysconfdir}/rc.d/init.d/yum-cron
 %{_sbindir}/yum-cron
_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to