mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
unit: never retroactively start requisites
Requesites are not supposed to be auto-started afterall, they are just checks, so don't try to be smarter here than appropriate. Based on a patch from Michal Schmidt.
This commit is contained in:
parent
0debd2bf2f
commit
335b5240ae
@ -1241,11 +1241,6 @@ static void retroactively_start_dependencies(Unit *u) {
|
||||
!UNIT_IS_ACTIVE_OR_ACTIVATING(unit_active_state(other)))
|
||||
manager_add_job(u->manager, JOB_START, other, JOB_FAIL, false, NULL, NULL);
|
||||
|
||||
SET_FOREACH(other, u->dependencies[UNIT_REQUISITE], i)
|
||||
if (!set_get(u->dependencies[UNIT_AFTER], other) &&
|
||||
!UNIT_IS_ACTIVE_OR_ACTIVATING(unit_active_state(other)))
|
||||
manager_add_job(u->manager, JOB_START, other, JOB_REPLACE, true, NULL, NULL);
|
||||
|
||||
SET_FOREACH(other, u->dependencies[UNIT_WANTS], i)
|
||||
if (!set_get(u->dependencies[UNIT_AFTER], other) &&
|
||||
!UNIT_IS_ACTIVE_OR_ACTIVATING(unit_active_state(other)))
|
||||
|
Loading…
Reference in New Issue
Block a user