service: when start is repeated too often, consider that failure

This commit is contained in:
Lennart Poettering 2010-05-20 20:45:20 +02:00
parent 7c64bbc387
commit 8e47d742a8
1 changed files with 1 additions and 0 deletions

View 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;
}