Summary: | sys-process/cronie[anacron] doesn't install anacron properly | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matthew Schultz <mattsch> |
Component: | [OLD] Core system | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | bugs+gentoo, cron-bugs+disabled, nebojsa |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Matthew Schultz
2014-03-06 21:03:37 UTC
+*cronie-1.4.11-r2 (30 Mar 2014) + + 30 Mar 2014; Lars Wendler <polynomial-c@gentoo.org> +cronie-1.4.11-r2.ebuild, + +files/cronie-1.3-crontab: + Attempt to fix installation of anacron as suggested by Matthew Schultz in bug + #503666. + Alright... I've tried to address all your suggestions. Please give cronie-1.4.11-r2 a try and report back if all your concerns are fixed. Any further suggestions to anacron are welcome. I think, there's room for improvement: 1) As I mentioned in (bug 503634): In case it should only be run if the user explicitly sets it to be executable, maybe the test in /etc/crontab which is at the moment [ ! -f /etc/cron.hourly/0anacron ] should be set to [ ! -x /etc/cron.hourly/0anacron ] 2) My crontab says: [ ! -f /etc/cron.hourly/0anacron ] && rm -f /var/spool/cron/lastrun/cron.hourly Who is executing /etc/cron.hourly/0anacron then? +*cronie-1.4.11-r3 (18 Apr 2014) + + 18 Apr 2014; Lars Wendler <polynomial-c@gentoo.org> -cronie-1.4.11-r2.ebuild, + +cronie-1.4.11-r3.ebuild, files/cronie-1.3-crontab: + Only use anachron if 0anacron is executable. + Please test and report back if that fixes all your concerns. I'm not 100% sure how anacron is supposed to work, so you might want to double-check my suggestion. - As fas as I understand, anacron calls scripts in cron.daily, cron.weekly and cron.monthly. It does _not_ call scripts in cron.hourly. - Anacron itself is called by a script in cron.hourly. Therefore the check for /etc/cron.hourly/0anacron should _not_ be in front of the cron.hourly rm call and in front of the run-crons command. I've been using cronie with anacron and those 2 changes for more than a week now and it seems to work as expected. As it is as of sys-process/cronie-1.4.12, configuration when using anacron is wrong - no jobs under hourly, daily, weekly or monthly gets ever executed. In cronie, anacron is only using external invocation or through cron jobs. Working configuration for /etc/crontab, when using anacron: 01 * * * * root run-parts /etc/cron.hourly Maybe we should consider making anacron mandatory with cronie, because it has built in job serialization and locking, and remove /usr/sbin/run-crons, which tries to do precisely same job. |