service: when start is repeated too often, consider that failure
This commit is contained in:
parent
7c64bbc387
commit
8e47d742a8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue