Bug 253536 - No way to avoid or adjust delay
Summary: No way to avoid or adjust delay
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: crontabs
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-20 14:14 UTC by Chris Adams
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version: 1.10-17.fc7
Clone Of:
Environment:
Last Closed: 2007-09-17 08:38:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chris Adams 2007-08-20 14:14:16 UTC
I like my daily cron jobs to run at the same time on all my systems (it is much
more convenient if log rotation happens as close to midnight as possible for
example).  Somewhere along the line (I don't see where in the changelog or in
any release notes), an arbitrary delay (based on hostname) was added to the
daily, weekly, and monthly cron directories.

There is no way to override it that won't be changed in an update.  There is no
configuration read in the file, and it is not marked %config in the spec, so I
cannot reliably avoid this undocumented delay.

The delay should be calculated once and stored in a sysconfig file (rather than
calculated every time).  Then it would also be possible to manually set the
delay to 0 (and not have to worry about a future update overwriting my change).

Comment 1 Marcela Mašláňová 2007-08-21 07:54:51 UTC
Delays in all cron.{daily,hourly,...} should solve this issue #110894. You're
right, I'll think about configuration.

Comment 2 Marcela Mašláňová 2007-08-21 08:50:57 UTC
I'm sorry, that isn't issue but bugzilla 110894

Comment 3 Marcela Mašláňová 2007-08-27 07:06:03 UTC
Thank's for report, it will be soon in update.

Comment 4 Fedora Update System 2007-08-27 21:40:33 UTC
crontabs-1.10-15.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Chris Adams 2007-08-28 15:29:40 UTC
I see the sysconfig file, but it doesn't look like it is actually referenced by
anything.  Also, as long as configuration is being added, I would suggest the
delay be configurable (not just "on/off").  Something like:

[ -f /etc/sysconfig/crontab ] && . /etc/sysconfig/crontab
if [ -z "$DELAY" ]; then
        # Calculate the delay
        ...
fi
sleep $DELAY
exit 0


Then have a default sysconfig that just has a commented out DELAY=1 line (as an
example).


Comment 6 Fedora Update System 2007-08-29 17:28:12 UTC
crontabs-1.10-15.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Chris Adams 2007-08-29 17:37:27 UTC
The issue has not been addressed at all; please read comment #5.

Comment 8 Marcela Mašláňová 2007-08-30 12:09:49 UTC
I agree you're solution is "nicer". I'll push it to update process.


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