[prev in list] [next in list] [prev in thread] [next in thread] 

List:       systemd-devel
Subject:    Re: [systemd-devel] OnCalendar every X minutes
From:       "T.C. Hollingsworth" <tchollingsworth () gmail ! com>
Date:       2015-03-29 19:28:34
Message-ID: CAJVv0OndjavBesVHZWW6KT3npVPmjNSSFxsu_1ma0JUfERr0Dg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Mar 29, 2015 9:52 AM, "Max" <maxim.suraev@campus.tu-berlin.de> wrote:
>
> Hi.
>
> Is there a way to make timer unit which will execute things every X
minutes where X
> is not divisor for 60?
> In case of divisor it's obvious:
>
> [Timer]
> OnCalendar=*:00/10
>
> Will run every 10 minutes which nicely fit into 60 minutes hour. What if
I would like
> to run things every 11 minutes: 0, 11, 22, 33, 44, 55, 66, 77...
>
> If I interpret
http://www.freedesktop.org/software/systemd/man/systemd.time.html
> correctly than
> OnCalendar=*:00/11 will run on 0, 11...44,55,0,11... resulting in
unevenness at the
> end of an hour.
>
> Am I missing something?

Yes. :-)  See OnActiveSec and related options, listed right above
OnCalendar in the documentation you linked to.

-T.C.

[Attachment #5 (text/html)]

<p dir="ltr">On Mar 29, 2015 9:52 AM, &quot;Max&quot; &lt;<a \
href="mailto:maxim.suraev@campus.tu-berlin.de">maxim.suraev@campus.tu-berlin.de</a>&gt; \
wrote:<br> &gt;<br>
&gt; Hi.<br>
&gt;<br>
&gt; Is there a way to make timer unit which will execute things every X minutes \
where X<br> &gt; is not divisor for 60?<br>
&gt; In case of divisor it&#39;s obvious:<br>
&gt;<br>
&gt; [Timer]<br>
&gt; OnCalendar=*:00/10<br>
&gt;<br>
&gt; Will run every 10 minutes which nicely fit into 60 minutes hour. What if I would \
like<br> &gt; to run things every 11 minutes: 0, 11, 22, 33, 44, 55, 66, 77...<br>
&gt;<br>
&gt; If I interpret <a \
href="http://www.freedesktop.org/software/systemd/man/systemd.time.html">http://www.freedesktop.org/software/systemd/man/systemd.time.html</a><br>
 &gt; correctly than<br>
&gt; OnCalendar=*:00/11 will run on 0, 11...44,55,0,11... resulting in unevenness at \
the<br> &gt; end of an hour.<br>
&gt;<br>
&gt; Am I missing something?</p>
<p dir="ltr">Yes. :-)   See OnActiveSec and related options, listed right above \
OnCalendar in the documentation you linked to.</p> <p dir="ltr">-T.C.</p>


[Attachment #6 (text/plain)]

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic