diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-20 20:45:20 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-20 20:45:20 +0200 |
commit | 8e47d742a84967431333248dc819687e5aae39ee (patch) | |
tree | 8f38e731ab284862d7d0a9dbc27a478f97a7b362 /src/service.c | |
parent | 7c64bbc3875930c045d53f09e244dff8607370e6 (diff) |
service: when start is repeated too often, consider that failure
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index 2f699cd1e6..07b6e4e05a 100644 --- a/src/service.c +++ b/src/service.c @@ -1708,6 +1708,7 @@ static int service_start(Unit *u) { /* Make sure we don't enter a busy loop of some kind. */ if (!ratelimit_test(&s->ratelimit)) { log_warning("%s start request repeated too quickly, refusing to start.", u->meta.id); + service_enter_dead(s, false, true); return -ECANCELED; } |