summaryrefslogtreecommitdiff
path: root/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'service.c')
-rw-r--r--service.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/service.c b/service.c
index da1c5e78e2..b7c3233183 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)