]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
core: rename/generalize UNIT(u)->test_start_limit() hook
authorMichal Sekletar <msekleta@redhat.com>
Mon, 4 Oct 2021 15:51:52 +0000 (17:51 +0200)
committerMichal Sekletar <msekleta@redhat.com>
Thu, 11 Nov 2021 16:04:36 +0000 (17:04 +0100)
commit705578c3b9d794097233aa66010cf67b2a444716
tree65fb8bd34d1e11d7159b4f4177d566885ba496a6
parentfd69f2247520b0be3190ded96d646a415edc97b7
core: rename/generalize UNIT(u)->test_start_limit() hook

Up until now the main reason why we didn't proceed with starting the
unit was exceed start limit burst. However, for unit types like mounts
the other reason could be effective ratelimit on /proc/self/mountinfo
event source. That means our mount unit state may not reflect current
kernel state. Hence, we need to attempt to re-run the start job again
after ratelimit on event source expires.

As we will be introducing another reason than start limit let's rename
the virtual function that implements the check.
src/core/automount.c
src/core/mount.c
src/core/path.c
src/core/service.c
src/core/socket.c
src/core/swap.c
src/core/timer.c
src/core/unit.c
src/core/unit.h