[PATCH 1/2] Split cron-daily and cron-hourly into separate packages. Add cron-security.

Zdenek Pavlas zpavlas at redhat.com
Wed Jan 22 16:34:07 UTC 2014


> +%files cron-daily
> +%defattr(-,root,root)
> +%{_sysconfdir}/cron.daily/0yum-daily.cron
> +%config(noreplace) %{_sysconfdir}/yum/yum-cron.conf
> +
> +%files cron-hourly
> +%defattr(-,root,root)
> +%{_sysconfdir}/cron.hourly/0yum-hourly.cron
> +%config(noreplace) %{_sysconfdir}/yum/yum-cron-hourly.conf
> +
> +%files cron-security
> +%defattr(-,root,root)
> +%{_sysconfdir}/cron.hourly/0yum-security.cron
> +%config(noreplace) %{_sysconfdir}/yum/yum-cron-security.conf
> +

I like this.. 

> +#  NOTE this runs after yum-cron-daily, if that is installed,
> +# so we will have already waited for that (default 2 hours, 120 mins).
> +# Also security updates should be smaller than all updates, anyway.
> +random_sleep = 60

> -# 6*60 = 360
> -random_sleep = 360
> +#  NOTE that we hold up all the other things in cron.daily as we wait,
> +# so while waiting for 6+ hours is fine for us it might not be nice
> +# for logrotate (so wait for 2 hours by default).
> +random_sleep = 120

Not sure if this is accurate.. cron-daily and cron-hourly run AFAIK
independently. And yum.pid is definitely locked after the sleep period,
so we don't hold up other jobs..


More information about the Yum-devel mailing list