Bug 154642 - Yum cron ( /etc/cron.daily/yum.cron ) service is disabled after a reboot
Yum cron ( /etc/cron.daily/yum.cron ) service is disabled after a reboot
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Depends On:
  Show dependency treegraph
Reported: 2005-04-13 05:53 EDT by Adrian
Modified: 2014-01-21 17:51 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-04-13 08:56:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Adrian 2005-04-13 05:53:05 EDT
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:

  /etc/init.d/yum stop

So the yum cron is disabled by the reboot.

Version-Release number of selected component (if applicable):

How reproducible:

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.

Additional info:

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.
Comment 1 Adrian 2005-04-13 09:00:34 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.