Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 694378

Summary: sys-process/cronie[-anacron] - make it behave more like vixie-cron for daily, weekly, and monthly jobs
Product: Gentoo Linux Reporter: acmondor <bugs.gentoo>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) <polynomial-c>
Status: UNCONFIRMED ---    
Severity: normal CC: adam, bugs.gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: New ebuild for better compatibility with vixie-cron
New crontab file for proposed cronie-1.5.4-r1.ebuild
ebuild cronie-1.5.4.ebuild patch

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) 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!