]> err.no Git - systemd/commitdiff
sysv: use lsb dependencies only for ordering, not for pulling in stuff, leave that...
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Apr 2010 16:47:36 +0000 (18:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Apr 2010 16:47:36 +0000 (18:47 +0200)
service.c

index da1c5e78e2a1faa85d429fd6688bf640ea2efebf..b7c32331839a445a3f0d47798be371b9aa850ede 100644 (file)
--- 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)