From f8820b628ce41047eb4fa65ce0cd7760991c3db7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 8 Jul 2010 05:29:46 +0200 Subject: [PATCH] service: don't enable native services via legacy sysv symlinks anymore --- src/service.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/service.c b/src/service.c index 2ca0c17e..f173d8a2 100644 --- a/src/service.c +++ b/src/service.c @@ -2565,6 +2565,13 @@ static int service_enumerate(Manager *m) { manager_dispatch_load_queue(m); service = unit_follow_merge(service); + /* If this is a native service, rely + * on native ways to pull in a + * service, don't pull it in via sysv + * rcN.d links. */ + if (service->meta.fragment_path) + continue; + if (de->d_name[0] == 'S') { if ((r = unit_add_two_dependencies_by_name_inverse(service, UNIT_AFTER, UNIT_WANTS, rcnd_table[i].target, NULL, true)) < 0) -- 2.39.5