Re: [systemd-devel] Add timer exception

2018-11-05 Thread Andy Pieters
On Mon, Nov 5, 2018 at 2:38 PM Lennart Poettering wrote: Note that you can combined OnCalendar= (i.e. calendar time events) and > OnUnitInactiveSec= and friends (i.e. monotonic time events) in a > single .timer unit. > Until this is implemented I think I will just do a `at -t 201901010325 syste

Re: [systemd-devel] Add timer exception

2018-11-05 Thread Kenneth Porter
--On Monday, November 05, 2018 2:37 PM +0100 Lennart Poettering wrote: I would be great to add a concept for that, but so far nobody suggested a nice syntax and a patch for it yet. For prior art, take a look at the RRULE syntax in calendar files.

Re: [systemd-devel] Add timer exception

2018-11-05 Thread Lennart Poettering
On Mo, 05.11.18 10:58, Andy Pieters (syst...@andypieters.me.uk) wrote: > > OnUnitInactiveSec=24h (one day after the service FINISHED) > > > > In all those cases, since this is interval based, you would need a way to > > "prime the pump" I usually do this with > > > > OnStartupSec=15m (1/4h after t

Re: [systemd-devel] Add timer exception

2018-11-05 Thread Lennart Poettering
On Mo, 05.11.18 09:36, Andy Pieters (syst...@andypieters.me.uk) wrote: > What can we do about this, please? Is there a better way to define a > timer to run every other day? Can we perhaps add an exception for a > specific date? A similar feature has been requested before: a way to configure bi-w

Re: [systemd-devel] Add timer exception

2018-11-05 Thread Andy Pieters
On Mon, Nov 5, 2018 at 10:05 AM Jérémy Rosen wrote: > I would have my timer be duration-based instead of calandar based > (assuming that fits your need) > > You could use one of the following > > OnActiveSec=48h (two days after the timer last triggered > OnUnitActiveSec=48h (two days afte the uni

Re: [systemd-devel] Add timer exception

2018-11-05 Thread Jérémy Rosen
I would have my timer be duration-based instead of calandar based (assuming that fits your need) You could use one of the following OnActiveSec=48h (two days after the timer last triggered OnUnitActiveSec=48h (two days afte the unit was last started) Or slightly different OnUnitInactiveSec=24

[systemd-devel] Add timer exception

2018-11-05 Thread Andy Pieters
Dear Systemd list I have got a job that I want to execute every other day. The job is rather lengthy and takes more than 24 hours to complete but less than 48. So here are my criteria: Start today Start the day after tomorrow (t+2d)*1 Start the (t+2d)*2 Start 2 days after that (t+2d)*n My tim