[systemd-devel] Add timer exception
Lennart Poettering
lennart at poettering.net
Mon Nov 5 13:38:45 UTC 2018
On Mo, 05.11.18 10:58, Andy Pieters (systemd at 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 the machine was started)
> >
> > or simply by enabling the service itself so it's part of the boot sequence
> > (this will work with OnUnitActive and OnUnitInactive, but not with OnActive)
> >
>
> Ok but I don't want to have to wait until 3.30AM to manually prime the
> thing, and I don't want to start it outside of its normal run window...
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.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list