Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 26392

Summary: anacron should update its time-stamps via regular cron
Product: Gentoo Linux Reporter: Nicolas Bock <nbock>
Component: Current packagesAssignee: Cron Team <cron-bugs+disabled>
Status: RESOLVED NEEDINFO    
Severity: enhancement CC: blaisorblade_spam
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 79842    
Attachments: crontab that executes in cron.daily
to execute in cron.weekly
to execute in cron.monthly

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.