Description of problem: Since I only use yum-cron for quite a few machines to upgrade them I like to get emails about what has been done during the upgrade. The simple logwatch output is insufficient as it does not log what was written to the console by updates. I propose to add a variable DEBUG_LEVEL to /etc/sysconfig/yum-cron that is then used in the yum cron scripts with the -d parameter (which is currently hardcoded to 0, which would then be the default in /etc/sysconfig/yum-cron). Currently I upgrade the scripts but they will be overridden if there is an update to yum-cron.
That's a good idea. Could you please post your changes as attachments to this bug, and I'll work to incorporate them? Be aware that some things in yum itself to not respect the verbosity levels, see bug 32961 and bug 379011.
Oops, that's bug 329261 and bug 379011.
Dang it, wish I could either type correctly or edit old comments. Trying again: bug 329261 and bug 370911.
Youp, I have looked at these reports. Since it has worked for me now for a few years I don't see why this shouldn't work in the future. I'll post the two files as attachments now with my changes. I have added ERROR_LEVEL as well.
Created attachment 289896 [details] /etc/cron.weekly/yum.cron
Created attachment 289897 [details] /etc/cron.daily/yum.cron
Created attachment 289898 [details] /etc/sysconfig/yum-cron
This (combined with the related request in bug 426755) has been implemented in yum-cron 0.7-1 in the devel branch, see also http://koji.fedoraproject.org/koji/buildinfo?buildID=30890 Please try it out.
yum-cron-0.7-1.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-cron'
yum-cron-0.7-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-cron'
yum-cron-0.7-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.
yum-cron-0.7-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.