mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
service: actually delay auto-restart if another job is pending
https://bugs.freedesktop.org/show_bug.cgi?id=45511
This commit is contained in:
parent
30edf11616
commit
feae8adb84
@ -2232,6 +2232,8 @@ static void service_enter_restart(Service *s) {
|
|||||||
|
|
||||||
if ((r = unit_watch_timer(UNIT(s), s->restart_usec, &s->timer_watch)) < 0)
|
if ((r = unit_watch_timer(UNIT(s), s->restart_usec, &s->timer_watch)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Any units that are bound to this service must also be
|
/* Any units that are bound to this service must also be
|
||||||
|
Loading…
Reference in New Issue
Block a user