diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-05-04 10:46:13 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-05-04 10:46:13 +0200 |
commit | 1ed7ebcfcaa952441565c1c8c43084add1f58a89 (patch) | |
tree | 9c2a3a4e826c8a0ebab05562d66b7070a3274dc6 /src/core/busname.c | |
parent | d428dd6ac9a56e7b3421fb8ef3aac9937a4a2e62 (diff) | |
parent | dbb0578edc5ab8e11641c8b2d29904d4f5f8e1e6 (diff) |
Merge pull request #3170 from poettering/v230-preparation-fixes
make virtualization detection quieter, rework unit start limit logic, detect unit file drop-in changes correctly, fix autofs state propagation
Diffstat (limited to 'src/core/busname.c')
-rw-r--r-- | src/core/busname.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/busname.c b/src/core/busname.c index e7b7b5c012..f03a95c24e 100644 --- a/src/core/busname.c +++ b/src/core/busname.c @@ -607,6 +607,7 @@ fail: static int busname_start(Unit *u) { BusName *n = BUSNAME(u); + int r; assert(n); @@ -632,6 +633,12 @@ static int busname_start(Unit *u) { assert(IN_SET(n->state, BUSNAME_DEAD, BUSNAME_FAILED)); + r = unit_start_limit_test(u); + if (r < 0) { + busname_enter_dead(n, BUSNAME_FAILURE_START_LIMIT_HIT); + return r; + } + n->result = BUSNAME_SUCCESS; busname_enter_making(n); @@ -1014,6 +1021,7 @@ static const char* const busname_result_table[_BUSNAME_RESULT_MAX] = { [BUSNAME_FAILURE_EXIT_CODE] = "exit-code", [BUSNAME_FAILURE_SIGNAL] = "signal", [BUSNAME_FAILURE_CORE_DUMP] = "core-dump", + [BUSNAME_FAILURE_START_LIMIT_HIT] = "start-limit-hit", [BUSNAME_FAILURE_SERVICE_START_LIMIT_HIT] = "service-start-limit-hit", }; |