Bug 520320
Summary: | Revert anacron to previous role | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steve Schaeffer <schasj> |
Component: | anacron | Assignee: | Marcela Mašláňová <mmaslano> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 11 | CC: | mmaslano, tmraz |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-09-08 08:53:47 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Steve Schaeffer
2009-08-30 15:48:09 UTC
Nope, that is not a good idea. The next weekly jobs will run 7 days after the timestamp stored in /var/spool/anacron/cron.weekly. I can imagine adding an option to anacron that will show dates when will the jobs configured in the anacrontab run. Then you can use anacron -f or anacron -u to move the timestamp to the current date. Also here is another feature possible - add @mondays @tuesdays etc. You could then change anacrontab to run the weekly jobs only on this specified day of the week. Why is it not a good idea? Can you point to some agreed upon strategy document? As I said, this function is moving backward in usability and clarity. There is no official strategy document. It was just agreed upon by cronie maintainers. The previous way of integrating anacron & cron was extremely bug prone. We will not change it back. If you have concrete useful features which were lost with this change please report them as separate bug reports. Alright, so I want to have my weekly jobs run at 0100 on Sunday morning. Furthermore, if they were missed because the system was down, I want them to run at the first opportunity, but between the hours of 1800 and 0600 only. The next Sunday I want them to run at the appointed time of 0100 again. Just how do I go about this with the current system? This could be accomplished with the @sundays directive in anacrontab if it was implemented in such way, that the job is run on the next Sunday and if the timestamp of the job is older than 7 days it is run immediately (of course with the configured delays, random delay, and hour range respected). However your usecase was not really bug-freely implemented in the previous anacron/crond setup anyway. There were always problems with lost or duplicate jobs in some circumstances like suspending/hibernating system, timezone changes etc. |