[systemd-devel] [EXT] Re: "OnUnitInactiveSec Timer not firing" issue
Andrei Borzenkov
arvidjaar at gmail.com
Thu Aug 1 10:48:44 UTC 2024
On Thu, Aug 1, 2024 at 1:42 PM Windl, Ulrich <u.windl at ukr.de> wrote:
>
> Hi!
>
> On " Try adding Persistent=yes, it should make it behave as you expect (you
> still need to start the unit manually at least once to initially trigger the timer).":
>
> You talk about the service unit, and not about the timer unit, right?
>
> Systemd.timer says (about Persistent): " Note that this setting only has an effect on timers configured with OnCalendar=."
> So it shouldn't make a difference if the docs are right.
>
OK, I missed this, sorry. In this case as far as I can tell the only
option is to start your unit once after boot. Or just use calendar
timers? Any reason you need to use OnUnitInactive instead of something
like OnCalendar=daily?
More information about the systemd-devel
mailing list