Bug 154031

Summary: Should report error and not run if prior cron.daily/monthly/etc is still running.
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: crontabsAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED WORKSFORME QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: mattdm
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-14 13:14:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Orion Poplawski 2005-04-06 17:31:20 UTC
Description of problem:

We've been running into problems where scripts in cron.daily are hanging.  This
can result cases where you have multiple instances of cron.daily running.  It
would be useful if there was a pidfile and if valid that cron.daily aborted with
an error to alert the administrator.

This possibly could tie into a solution for bug #150228.

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

How reproducible:
Fairly

Comment 1 Jason Vas Dias 2005-08-01 20:01:07 UTC
I'm currently working on an enhancement that will provide a per-job cron option
or cron job syntax to run jobs "exclusively" - ie. not to run the next scheduled
instance of a job if the previous instance of the same job is still running.


Comment 2 Matthew Miller 2006-07-10 20:49:13 UTC
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!


Comment 3 Orion Poplawski 2006-07-10 21:03:19 UTC
Jason - I'm starting to see messages like:

/etc/cron.weekly/0anacron:

anacron: Cannot run - another anacron process is already running.: Resource
deadlock avoided

but I've only seen it for anacron.  Is it also in place for the normal crons?


Comment 4 Matthew Miller 2006-07-10 21:04:52 UTC
(Please note that FC4 is entering legacy status in a few weeks.)

Comment 5 Jitka Kozana 2006-08-31 12:43:12 UTC
Please update your system and try with the latest version of crontabs. Let me know, if the 
problem still occurs.
Thanks for cooperation.

Comment 6 Orion Poplawski 2006-08-31 17:30:18 UTC
Um, I don't see any evidence that there has been an update to crontabs.  It
seems like run-parts would need to be updated to use a per directory lock file. 

Comment 7 Marcela Mašláňová 2006-09-20 12:47:35 UTC
Problem from comment#3 are related with anacron. Try to update on anacron-2.3-
40.fc5 and let me know.
Thank you.