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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 20 Sep 2020 10:01:37 +0000 (12:01 +0200)
commit689d2e061bd7b04f75104067e5ff0046f357f9b8
tree0f3ee06699a4937542a6379013375ad7defdc1b2
parent2f53d690ead37ee48b64ab650697f2f8be7c0ceb
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
(cherry picked from commit 47ab8f73e3468b6e5a48218eacdb830e978d2cfd)
src/core/path.c
src/core/path.h