Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26392 - anacron should update its time-stamps via regular cron
Summary: anacron should update its time-stamps via regular cron
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Cron Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 79842
  Show dependency tree
 
Reported: 2003-08-11 04:46 UTC by Nicolas Bock
Modified: 2008-02-13 00:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
crontab that executes in cron.daily (z-anacron,114 bytes, text/plain)
2003-08-11 04:48 UTC, Nicolas Bock
Details
to execute in cron.weekly (z-anacron,115 bytes, text/plain)
2003-08-11 04:49 UTC, Nicolas Bock
Details
to execute in cron.monthly (z-anacron,116 bytes, text/plain)
2003-08-11 04:50 UTC, Nicolas Bock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bock 2003-08-11 04:46:34 UTC
It would be nice if anacron would update its time-stamps via the regular cron
command. Currently anacron is executed after an uptime of more than a day since
its time-stamps indicate that it hasn't run for more than a day, i.e. missed the
last cron.daily. I included attachments for cron.daily, cron.weekly, and
cron.monthly that will do the job.
Comment 1 Nicolas Bock 2003-08-11 04:48:45 UTC
Created attachment 15896 [details]
crontab that executes in cron.daily
Comment 2 Nicolas Bock 2003-08-11 04:49:29 UTC
Created attachment 15897 [details]
to execute in cron.weekly
Comment 3 Nicolas Bock 2003-08-11 04:50:30 UTC
Created attachment 15898 [details]
to execute in cron.monthly
Comment 4 Nicolas Bock 2003-08-17 13:52:40 UTC
I forgot to mention that the scripts should be named such that they get executed _first_ in a particular /etc/cron.*/. We don't want to run the same scripts with cron and anacron.... A script name of "0-anacron" for example should do the trick.
Comment 5 BlaisorBlade 2005-07-21 19:29:23 UTC
The miss of those scripts is causing, on my system, anacron and crond to execute
the same tasks, which then finish together, causing race conditions and
failures... for instance, there are two concurrent updatedb, with at least one
of them failing.
Comment 6 BlaisorBlade 2005-11-01 08:17:12 UTC
As said in my previous comment, this is causing breakage... so it must not be 
marked as an "enhancement". I'm not allowed by Bugzilla to remark it, however 
please do it - and btw fix the bug, it's trivial.

Also, the fact that nobody has yet fixed this bug is bad.
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2007-01-08 17:28:10 UTC
(In reply to comment #6)
> As said in my previous comment, this is causing breakage...

BlaisorBlade: Could you be more specific, please. What's your setup (crontab/anacron)?
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2008-02-13 00:25:11 UTC
Dead bug.