]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: serialize and deserialize unit start ratelimits
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 15 Nov 2023 16:23:27 +0000 (17:23 +0100)
committerLuca Boccassi <bluca@debian.org>
Wed, 22 Nov 2023 12:12:35 +0000 (12:12 +0000)
commit6ef512c0bb7aeb2000588d7d05e23b4681da8657
treea1cc0ace33327dbf79dd700f46e1ca94311d062d
parent07a6647abbd74288a00b1b8f17ec9a9cce080ae4
core: serialize and deserialize unit start ratelimits

The logic is taken from dump ratelimit: if the config changes, we discard the
counters. This allows the user apply new limits and "start from scratch" in
that case.

This actually makes StartLimitIntervalSec=infinity (or with a large interval)
work as expected, because the counter is maintained even if daemon-reload
operations are interleaved.
src/core/unit-serialize.c
test/units/testsuite-04.SYSTEMD_JOURNAL_COMPRESS.sh
test/units/testsuite-67.sh