mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
service: when we cannot start due to rate limít consider that a real failure
This commit is contained in:
parent
9eb63b3cb4
commit
d5159713c1
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue