[systemd-devel] [PATCH] timer: allow user to control activation time of cron-like timers

Alex B pkunk.ab at gmail.com
Sun May 11 09:30:04 PDT 2014


2014-05-11 20:09 GMT+04:00 Dave Reisner <d at falconindy.com>:
> On Sun, May 11, 2014 at 07:53:55PM +0400, Alexander Bashmakov wrote:
>> Issue was rised in this thread:
>> https://mailman.archlinux.org/pipermail/arch-general/2014-May/036162.html
>>
>> Disclaimer:
>> I almost have no expereince in C.
>> So this patch can contain some silly mistakes. But it 'works for me'.
>> Please consider it as RFC.
>>
>> -8<-------
>> Cron-like timers are useful for maintenance tasks
>> and already used in some distros by default.
>> But midnight is not best time for this.
>> Just add a new option allowing user to specify
>> activation time (and date) for such timers globally.
>
> "daily" is just syntactic sugar for "*-*-* 00:00:00". If you don't want
> to run at midnight, modify the normalized form to run at the time you
> want.
>

It's ok for one timer, but not for the set of them.
In general I'm want to schedule all maintenance tasks to 5 a.m.
or lunch break and forget about them.
This applies both for distro provided timers an my own.


More information about the systemd-devel mailing list