<div dir="ltr"><div dir="ltr">On Wed, May 15, 2019 at 11:21 PM Jeffrey Walton <<a href="mailto:noloader@gmail.com">noloader@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a systemd timer that starts a service, and the service executes<br>
a script that downloads data files once a day. Once the data files are<br>
retrieved I don't need the timer for the remainder of the day.<br>
However, I need the time again the next day.<br>
<br>
Here are the two docs I found on scheduling a timer, but I was not<br>
able to parse out the info I needed.<br>
<a href="https://www.freedesktop.org/software/systemd/man/systemd.timer.html" rel="noreferrer" target="_blank">https://www.freedesktop.org/software/systemd/man/systemd.timer.html</a><br>
and <a href="https://www.freedesktop.org/software/systemd/man/systemd.time.html" rel="noreferrer" target="_blank">https://www.freedesktop.org/software/systemd/man/systemd.time.html</a><br>
.<br>
<br>
How do I specify a timer that starts 6:00 AM every morning, fires once<br>
an hour, and then stops for the day upon success of the download?<br></blockquote><div><br></div><div>I think you only do "every hour 6:00 to XX:00" through systemd.timer and the rest through script logic – simply make the script exit if it finds today's data already having been downloaded.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>