From: Lennart Poettering Date: Wed, 19 May 2010 23:14:43 +0000 (+0200) Subject: service: when we cannot start due to rate limít consider that a real failure X-Git-Tag: 0.git+20100605+dfd8ee-1~11^2^2~50 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5159713c13859a7d472625ddaa9f9cc4c546236;p=systemd service: when we cannot start due to rate limít consider that a real failure --- diff --git a/src/service.c b/src/service.c index 3e2a499e..ac83862d 100644 --- a/src/service.c +++ b/src/service.c @@ -1708,7 +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); - return -EAGAIN; + return -ECANCELED; } s->failure = false; diff --git a/src/unit.c b/src/unit.c index 8f0b0773..bcb95b2a 100644 --- a/src/unit.c +++ b/src/unit.c @@ -735,9 +735,10 @@ fail: } /* Errors: - * -EBADR: This unit type does not support starting. - * -EALREADY: Unit is already started. - * -EAGAIN: An operation is already in progress. Retry later. + * -EBADR: This unit type does not support starting. + * -EALREADY: Unit is already started. + * -EAGAIN: An operation is already in progress. Retry later. + * -ECANCELED: Too many requests for now. */ int unit_start(Unit *u) { UnitActiveState state;