[systemd-devel] [PATCH] timer: allow user to control activation time of cron-like timers
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Thu May 15 18:28:29 PDT 2014
On Thu, May 15, 2014 at 11:51:13PM +0200, Lennart Poettering wrote:
> On Sun, 11.05.14 19:53, Alexander Bashmakov (pkunk.ab at gmail.com) wrote:
>
> I am not convinced that this is really desirable. "daily" is just a
> short way to write "*-*-* 00:00:00". And if that is not desirable, then
> I'd just recommend writing "*-*-* 05:00:00"... I am not convinced we
> should allow redefining what "daily" resolves to...
In principle you're right, but this seems to be something that people
ask for, with cron. And with the usual setup where scripts are stored
in /etc/cron.{daily,weekly,...} is was trivial to adjust the date globally,
by modyfing the crontab entry which runs those directories. When switching
to systemd units as they are defined currently this convenience is lost.
I think it is reasonable request. This feature is backwards compatible,
and requires user intervention to activate, so I'd say we can redefine
"daily" not to necessarilly mean "midnight".
Zbyszek
More information about the systemd-devel
mailing list