Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96730 - anacron calls run-parts with --lsbsysinit parameter (some cron scripts will not run when expected)
Summary: anacron calls run-parts with --lsbsysinit parameter (some cron scripts will n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Cron Team
URL: http://bugs.gentoo.org/show_bug.cgi?i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-21 13:37 UTC by kfm
Modified: 2005-07-13 23:45 UTC (History)
0 users

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


Attachments
/etc/anacrontab (proposed) (anacrontab,343 bytes, text/plain)
2005-06-21 13:39 UTC, kfm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kfm 2005-06-21 13:37:34 UTC
Hi folks. I'd like to propose that the default anacrontab invokes run-parts with the --lsbsysinit parameter. The background for this is covered in this bug:

  http://bugs.gentoo.org/show_bug.cgi?id=95173

In any case, the crux of the matter is that run-parts will only execute scripts that fall into the "Debian" namespace which, according to the manpage, must "consist entirely of upper and lower case letters, digits, underscores, and hyphens." The main problem is that this vetoes scripts that have a fullstop (period) in their names such as those ending with the ".cron" suffix. Having gone through a frustrating debugging session with one user I found at least one case where this is an issue: the app-admin/logrotate package installs the /etc/cron.daily/logrotate.cron script which will be ignored by anacron.
Comment 1 kfm 2005-06-21 13:39:13 UTC
Created attachment 61663 [details]
/etc/anacrontab (proposed)

Simple amendment to invoke the run-parts command with the --lsbsysinit
parameter (see man run-parts).
Comment 2 SpanKY gentoo-dev 2005-06-21 13:47:44 UTC
what a retarded namespace
Comment 3 Aaron Walker (RETIRED) gentoo-dev 2005-06-21 18:15:53 UTC
Fixed.  Thanks for the bug.
Comment 4 kfm 2005-07-10 19:29:48 UTC
OK, I screwed up on this one. Whilst the resolution for this bug was sensible, I
was wrong to claim that it resolved the specific issue I described with
logrotate (crossed wires - the script in question had actually been renamed ...
*ahem*). I'll make further and more detailed comments on bug 95173 where they
belong.
Comment 5 kfm 2005-07-13 08:49:37 UTC
This bug has now become a natural inversion of itself! So I'm requesting that
the original resolution to this bug be reverted. That is, the --lsbsysinit
parameter should be removed from the default anacrontab file.

The resolution to bug 95173 explains why. Basically, the default namespace in
debianutils-2.14.1-r1 is now much more tolerant and solves the problem
originally mentioned in this bug. It has not yet been unmasked but, nontheless,
it should be safe to revert the anacrontab change because it didn't correctly
solve the the "dots-in-filenames" issue in the first place (certainly not for
the "*.cron" scripts). I apologise for any inconvenience caused.
Comment 6 Aaron Walker (RETIRED) gentoo-dev 2005-07-13 23:45:50 UTC
Reverted.