Post #1498422
2024-11-12 08:11 UTC
DeferReactivation= is a new boolean option you can set on a timer unit. If you enable it, and a calendar timer elapses while the service is still running this is ignored. Reactivation only takes place once the timer unit elapses after the service was deactivated again.
And that's it. A small knob, but quite useful to avoid constant immediate reactivation of timers if the services they activate take too long to finish.
Replies (4)
-
@carlton@fosstodon.org 2024-11-12 08:20
@pid_eins That’s super. Thanks! 🤩
-
@cweickhmann@qoto.org 2024-11-12 09:19
@pid_eins Nice! Does it tell this happened in the logs?
-
@juliank@mastodon.social 2024-11-12 20:34
@pid_eins What I kind of want is to do the whole apt updating properly. Currently we run twice a day randomised 12h, so we get a good spread. But I'd like to be able to say "run me when networking changed" or "hey I need to run in 3 hours again" because the server responded to try again then. Right now, everything that downloads stuff like that needs to implement its own demon and run constantly listening to netlink. But that's a waste of memory. systemd could spawn me when reasonable
-
@moritzdietz@mastodon.social 2024-11-18 08:27
@pid_eins love it! Can't wait to see this land for RHEL 9 🎉