Re: Add timer exception

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mo, 05.11.18 10:58, Andy Pieters (systemd@xxxxxxxxxxxxxxxxx) 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
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux