]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
core: introduce activation rate limiting for socket units
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Apr 2016 18:26:15 +0000 (20:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 Apr 2016 14:27:48 +0000 (16:27 +0200)
commit8b26cdbd2a949b02c0f4d94d0e157cdb9438d246
tree48f3be87a92936994ff5f41f2005b89c1b9bffc3
parent3282493ad0038fc2051506dd0994638dd74458d1
core: introduce activation rate limiting for socket units

This adds two new settings TriggerLimitIntervalSec= and TriggerLimitBurst= that
define a rate limit for activation of socket units. When the limit is hit, the
socket is is put into a failure mode. This is an alternative fix for #2467,
since the original fix resulted in issue #2684.

In a later commit the StartLimitInterval=/StartLimitBurst= rate limiter will be
changed to be applied after any start conditions checks are made. This way,
there are two separate rate limiters enforced: one at triggering time, before
any jobs are queued with this patch, as well as the start limit that is moved
again to be run immediately before the unit is activated. Condition checks are
done in between the two, and thus no longer affect the start limit.
man/systemd.socket.xml
src/core/dbus-socket.c
src/core/load-fragment-gperf.gperf.m4
src/core/main.c
src/core/socket.c
src/core/socket.h