Red Hat Bugzilla – Bug 154642
Yum cron ( /etc/cron.daily/yum.cron ) service is disabled after a reboot
Last modified: 2014-01-21 17:51:40 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.6) Gecko/20050323 Fedora/1.7.6-1.3.2
Description of problem:
If I enable (with "/etc/init.d/yum start") the yum cron (/etc/cron.daily/yum.cron), and then I restart the computer (reboot), the yum cron service is disabled. This is due to the file:
The file is used by the cron task to know if the service has been enabled. The file IS DELETED in the reboot, that is equivalent to stop the service:
So the yum cron is disabled by the reboot.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start the yum service: /etc/init.d/yum start
2. See that /var/lock/subsys/yum has been created.
3. Reboot the computer: reboot
4. See that /var/lock/subsys/yum has been deleted.
Actual Results: Yum crom service won't be executed.
Expected Results: Yum crom service should keep its state (enabled or disabled) after a reboot.
Probably all files in /var/lock/subsys are deleted in a reboot. So a solution would be to use other directory to store the file.
Sorry, I forgot the activation of the service:
chkconfig yum on
Now the file is created every time the computer boots, so the yum cron works.