service: actually delay auto-restart if another job is pending

https://bugs.freedesktop.org/show_bug.cgi?id=45511
This commit is contained in:
David Ward
2012-05-22 01:53:30 +02:00
committed by Lennart Poettering
parent 30edf11616
commit feae8adb84
+2
View File
@@ -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)
goto fail;
return;
}
/* Any units that are bound to this service must also be