]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: Add trigger limit for path units 21808/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 17 Dec 2021 19:01:31 +0000 (20:01 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 18 Dec 2021 10:26:25 +0000 (11:26 +0100)
commitaaae822b37aa3ca39aebb516fdc6bef36d730c25
tree8fa911e2f2010960a22297ab0ba7d0ed0a2bbf42
parent40f41f34d4af15d0147b5b2525f0b87ff62eae9a
core: Add trigger limit for path units

When conditions fail on a service unit, a path unit can cause
PID 1 to busy loop as it keeps trying to activate the service unit.
To avoid this from happening, add a trigger limit to the path unit,
identical to the trigger limit we have for socket units.

Initially, let's start with a high limit and not make it configurable.
If needed, we can add properties to configure the rate limit similar
to the ones we have for socket units.
src/core/path.c
src/core/path.h
test/testsuite-63.units/test63.service
test/units/testsuite-63.service