Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 694378 - sys-process/cronie[-anacron] - make it behave more like vixie-cron for daily, weekly, and monthly jobs
Summary: sys-process/cronie[-anacron] - make it behave more like vixie-cron for daily,...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-14 19:54 UTC by acmondor
Modified: 2022-09-24 21:24 UTC (History)
3 users (show)

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


Attachments
New ebuild for better compatibility with vixie-cron (cronie-1.5.4-r1.ebuild,2.49 KB, text/plain)
2019-09-14 19:54 UTC, acmondor
Details
New crontab file for proposed cronie-1.5.4-r1.ebuild (cronie-crontab-no-anacron,890 bytes, text/plain)
2019-09-14 19:56 UTC, acmondor
Details
ebuild cronie-1.5.4.ebuild patch (cronie-1.5.4.ebuild.patch,1.10 KB, patch)
2019-09-14 21:32 UTC, acmondor
Details | Diff
Patch for cronie-1.5.5.ebuild (cronie-1.5.5.ebuild.patch,2.43 KB, patch)
2020-08-27 16:20 UTC, acmondor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description acmondor 2019-09-14 19:54:35 UTC
Created attachment 589844 [details]
New ebuild for better compatibility with vixie-cron

I am trying to migrate several machines that run 24x7 to cronie from vixie-cron but do not like how the daily, weekly, and monthly jobs are run. That is, I want to make sure those jobs run exactly at the same time as they did with vixie-cron (for various reasons) but it does not seem possible via cronie's anacron implementation.

Building cronie without anacron gets me very close, so I came up with an ebuild (see attached) that completes the picture. I am currently running cronie built from this ebuild and so far things look good.

The changes in this ebuild do the following, but only when cronie is built without the anacron USE flag:

- don't install /etc/cron.d/0hourly
- don't install /etc/cron.d/dailyjobs
- install /etc/crontab with contents similar to that used in vixie cron

With these changes, the daily, weekly, and monthly jobs are run the exact same way they were with vixie-cron.
Comment 1 acmondor 2019-09-14 19:56:38 UTC
Created attachment 589846 [details]
New crontab file for proposed cronie-1.5.4-r1.ebuild

This file is the original cronie crontab file with the vixie-cron contents appended to it.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-09-14 20:05:44 UTC
In cases like this I do prefer (ebuild) patches.
Comment 3 acmondor 2019-09-14 21:32:21 UTC
Created attachment 589850 [details, diff]
ebuild cronie-1.5.4.ebuild patch

The patch for cronie-1.5.4.ebuild is attached.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-11 15:07:57 UTC
Package removed.
Comment 5 acmondor 2019-10-11 15:22:04 UTC
Seems this got wrongly changed to RESOLVED OBSOLETE because it had vixie-cron in the title. This bug report is for cronie!
Comment 6 Joakim Tjernlund 2020-08-27 12:21:20 UTC
Just found this bug and I would like this too
Comment 7 acmondor 2020-08-27 16:20:27 UTC
Created attachment 657154 [details, diff]
Patch for cronie-1.5.5.ebuild

This is a cleaner/simpler patch than the earlier one. It uses a new keyword called 'vixiecron' to select the vixie-cron behaviour. I've been using this patch on my amd86 and x86 systems since cronie-1.5.5 became stable.
Comment 8 Mike Gilbert gentoo-dev 2022-09-24 21:24:55 UTC
I don't think we are going to implement this.