[systemd-devel] On calendar timer

Lennart Poettering mzerqung at 0pointer.de
Tue Jan 12 10:35:25 PST 2016


On Tue, 12.01.16 19:13, arnaud gaboury (arnaud.gaboury at gmail.com) wrote:

> > To express what you want to express I'd just list all days of the
> > first week.
> >
> >     Sun 1,3,5,7,9-1,2,3,4,5,6,7 02:00
> 
> Very good. If I follow you correctly, the service will be triggered on
> month 1,3,5,7,9, 11 (in fact, every two months. I do not care which
> one indeed),  on the first Sunday of these months at 2:00 AM. That is
> exactly what I want.
> As a side note, I will need to trigger like 8 services at this moment
> (in fact, it is a letsencrypt ssl web certificate auto renewal for all
> my subdomains). It seems there is no After= for timer, so best would
> be to set, say 2:00, 2:05, 2:10 etc (the ssl renewal just need less
> than one minute). Or simpler, let 2:00 for all of them ?

YOu can use After= between the service units you trigger, if you like.

But if it's not a problem that all your services run in parallel, by
all means run them in parallel, and specify the same time of 2:00...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list