chiark / gitweb /
service: when start is repeated too often, consider that failure
authorLennart Poettering <lennart@poettering.net>
Thu, 20 May 2010 18:45:20 +0000 (20:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 May 2010 18:45:20 +0000 (20:45 +0200)
src/service.c

index 2f699cd..07b6e4e 100644 (file)
@@ -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;
         }