Summary: | sys-process/cronie : /etc/cron.hourly/0anacron not executed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Frédéric COIFFIER <fcoiffie> |
Component: | [OLD] Core system | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | bugs+gentoo, cron-bugs+disabled |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Frédéric COIFFIER
2014-03-06 15:37:08 UTC
(In reply to Frédéric COIFFIER from comment #0) > After installing sys-process/cronie with anacron USE flag, anacron was never > launched. > > I understand that anacron is launched by cron thanks to > /etc/cron.hourly/0anacron. > And this script isn't executable. > After doing chmod +x /etc/cron.hourly/0anacron, anacron is correctly > executed. That's exactly how it ought to work. It doesn't get executed unless you want it to. But in this case, is it possible to add a message in postinst ? I searched for days before finding the solution. And there is no documentation about this behaviour. 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 ] |