]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/systemd.unit.xml
core: make the StartLimitXYZ= settings generic and apply to any kind of unit, not...
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Feb 2016 17:38:03 +0000 (18:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Feb 2016 12:26:56 +0000 (13:26 +0100)
commit6bf0f408e4833152197fb38fb10a9989c89f3a59
tree5bbffa023ddcc7b5e8059a9d64e69e7d5303cb4e
parentbae687d885dc9df257a23ab6aab08c579190fd53
core: make the StartLimitXYZ= settings generic and apply to any kind of unit, not just services

This moves the StartLimitBurst=, StartLimitInterval=, StartLimitAction=, RebootArgument= from the [Service] section
into the [Unit] section of unit files, and thus support it in all unit types, not just in services.

This way we can enforce the start limit much earlier, in particular before testing the unit conditions, so that
repeated start-up failure due to failed conditions is also considered for the start limit logic.

For compatibility the four options may also be configured in the [Service] section still, but we only document them in
their new section [Unit].

This also renamed the socket unit failure code "service-failed-permanent" into "service-start-limit-hit" to express
more clearly what it is about, after all it's only triggered through the start limit being hit.

Finally, the code in busname_trigger_notify() and socket_trigger_notify() is altered to become more alike.

Fixes: #2467
13 files changed:
man/systemd.service.xml
man/systemd.unit.xml
src/core/busname.c
src/core/busname.h
src/core/dbus-service.c
src/core/dbus-unit.c
src/core/load-fragment-gperf.gperf.m4
src/core/service.c
src/core/service.h
src/core/socket.c
src/core/socket.h
src/core/unit.c
src/core/unit.h