| Summary: | cronie does not run cron.hourly (and propably more) | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Volker <lists.volker> |
| Component: | core | Assignee: | Alejandro Hernandez <alejandro.hernandez> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | meta.mr.watcher, meta.watcher |
| Version: | 1.6.1 | ||
| Target Milestone: | 1.8 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
Trying to find a fix, the default Deboam style
run-parts --report /etc/cron.hourly
command does not work. The run-parts command from busy-box does not accept the '--report' argument. The following worked in /etc/cronttab:
17 * * * * root cd / && run-parts /etc/cron.hourly
Could you please give more information about this issue?, it seems to me that it this is working: /etc/crontab: 1 * * * * root cd / && run-parts /etc/cron.hourly /etc/cron.hourly/foo date >> /tmp/bar /tmp/bar: Tue Oct 14 13:01:01 UTC 2014 Tue Oct 14 14:01:01 UTC 2014 Tue Oct 14 15:01:01 UTC 2014 Can you also make sure the scripts in your cron.hourly / cron.daily / cron.weekly / cron.monthly directories do not have a "." in their name, given that run-parts without options will ignore these. https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-extended/cronie/cronie/crontab still does not list any execution of the sub-directories. I don't say that cronie is not working. It just does not execute any of the /etc/cron.hourly etc. out of the box without the need that user modify the /etc/crontab If you install crontab and have /etc/cron.hourly etc, you would assume that they are executed out of the box without manual modifications. I do not know where the following line comes from: 1 * * * * root cd / && run-parts /etc/cron.hourly Alejandro - Volker has answered your question. Does this need to be in NEEDINFO? I added a default configuration file, it is for instructive purposes, so it is still not enabled by default, the user has to uncoment the lines as desired. http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4a7446ed99a0c21ee81c22a69dd3fbbb8e396291 Solved by previous comment ^^ |
Cronie (cron clone), found in meta/recipes-extended/cronie/ does not seem to run scripts in /etc/cron.daily We install cron configuration to /etc/cron.d/ and they get executed. We install scripts into /etc/cron.hourly/ and it is not executed. I am not familiar with the big differences betweeen cron and cronie. With the regular cron the basic distributions (like Debian, Fedora, Ubuntu) configure in /etc/cronttab that the files under /etc/cron.{daily,hourly,weekly} get executed. I also see that logrotate and prelink install files to /etc/cron.daily that might be affected by this, too.