1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00

sysv: use lsb dependencies only for ordering, not for pulling in stuff, leave that to the symlink farms

This commit is contained in:
Lennart Poettering 2010-04-07 18:47:36 +02:00
parent 061ea77d9e
commit fc22fc6efc

View File

@ -484,15 +484,7 @@ static int service_load_sysv_path(Service *s, const char *path, UnitLoadState *n
if (r == 0)
continue;
if (!(r = unit_add_dependency_by_name(u, UNIT_AFTER, m)) < 0) {
free(m);
goto finish;
}
r = unit_add_dependency_by_name(
u,
startswith(t, "Required-Start:") ? UNIT_REQUIRES : UNIT_WANTS,
m);
r = unit_add_dependency_by_name(u, UNIT_AFTER, m);
free(m);
if (r < 0)