From: Lennart Poettering Date: Wed, 7 Apr 2010 16:47:36 +0000 (+0200) Subject: sysv: use lsb dependencies only for ordering, not for pulling in stuff, leave that... X-Git-Tag: 0.git+20100605+dfd8ee-1~219 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc22fc6efc4f6a46faf6547f33f42dffc1e35c15;p=systemd sysv: use lsb dependencies only for ordering, not for pulling in stuff, leave that to the symlink farms --- diff --git a/service.c b/service.c index da1c5e78..b7c32331 100644 --- a/service.c +++ b/service.c @@ -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)