[systemd-devel] Timer: time format
arnaud gaboury
arnaud.gaboury at gmail.com
Tue Aug 23 13:52:43 UTC 2016
On Tue, Aug 23, 2016 at 3:39 PM, Michael Chapman <mike at very.puzzling.org> wrote:
> On Tue, 23 Aug 2016, arnaud gaboury wrote:
>>
>> I am really sorry for this post as this may sound like a trivial one,
>> but honestly the timer topic is difficult to understand for me (at
>> least the time format).
>>
>> I am looking to run a service twice a day, never mind the time. I
>> understand I must use OnCalendar, but I have no idea for the rest.
>
>
> You may find it more convenient to use the other On* directives.
>
> For example:
>
> OnBootSec=1h
> OnUnitActiveSec=12h
Thank you for all these answers. In fact, without having a look at my
emails, I finally found this solution (which is correct accordingly
what I read):
OnUnitActiveSec=12h
Do I have to add:
Persistent=true
and an OnBootSec entry ?
>
> will trigger the associated service an hour after booting the system, and
> every 12 hours therafter. Take a look at the RandomizedDelaySec= and
> AccuracySec= directives too, to further specify how accurate the timer
> should be.
>
> - Michael
--
google.com/+arnaudgabourygabx
More information about the systemd-devel
mailing list