]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: propagate unit start limit hit state to triggering path unit
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Sep 2020 17:57:09 +0000 (19:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Sep 2020 11:05:09 +0000 (13:05 +0200)
commit47ab8f73e3468b6e5a48218eacdb830e978d2cfd
treec16aa5048b03c0af285888b2a83593a882f9f9aa
parent0377cd2936ae5cac0c9d76a4b58889f121c097c4
core: propagate unit start limit hit state to triggering path unit

We already do this for socket and automount units, do it for path units
too: if the triggered service keeps hitting the start limit, then fail
the triggering unit too, so that we don#t busy loop forever.

(Note that this leaves only timer units out in the cold for this kind of
protection, but it shouldn't matter there, as they are naturally
protected against busy loops: they are scheduled by time anyway).

Fixes: #16669
src/core/path.c
src/core/path.h