From: Lennart Poettering Date: Thu, 20 May 2010 18:45:20 +0000 (+0200) Subject: service: when start is repeated too often, consider that failure X-Git-Tag: 0.git+20100605+dfd8ee-1~11^2^2~34 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e47d742a84967431333248dc819687e5aae39ee;p=systemd service: when start is repeated too often, consider that failure --- diff --git a/src/service.c b/src/service.c index 2f699cd1..07b6e4e0 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; }