]> err.no Git - systemd/commitdiff
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 2f699cd1e66a582e9c7f0653594b6ce2c6d18a01..07b6e4e05a5dda9d3131b43e83050a1f029414e7 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;
         }