]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.h
Uphold/StopWhenUnneeded/BindsTo: add retry timer on rate limit
authorLuca Boccassi <bluca@debian.org>
Wed, 12 Apr 2023 19:14:17 +0000 (20:14 +0100)
committerLuca Boccassi <bluca@debian.org>
Wed, 12 Apr 2023 20:49:48 +0000 (21:49 +0100)
commit7223d500ac548c69e7879931e3ad8c84838f925b
tree12f46990a6637230954e4e0746a5387363ef4a26
parent5015b5014bcff93371aef2c78b92efcfc2e38a40
Uphold/StopWhenUnneeded/BindsTo: add retry timer on rate limit

The Upholds= promise is that as long as unit A is up and Upholds=B,
B will be activated if failed or inactive. But there is a hard-coded,
non-configurable rate limit for this, so add a timed retry after the
ratelimit has expired.

Apply to BindsTo= and StopWhenUnneeded= as well.
src/basic/ratelimit.c
src/basic/ratelimit.h
src/core/manager.c
src/core/unit.c
src/core/unit.h