summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-01 23:53:44 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-01 23:53:44 +0200
commitb1bc08e599ae7760c7bcb29923ef5e1f92be2af7 (patch)
treef387918576df797d91402b1c9fb626a59b1db0c2 /src
parent5c94603d4c011d35026251994d77a0bf2e56c593 (diff)
manager: don't even think of enumerating sysv services in user instances
Diffstat (limited to 'src')
-rw-r--r--src/service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 4ee7900e08..165655eb12 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2977,6 +2977,9 @@ static int service_enumerate(Manager *m) {
assert(m);
+ if (m->running_as != MANAGER_SYSTEM)
+ return 0;
+
zero(runlevel_services);
STRV_FOREACH(p, m->lookup_paths.sysvrcnd_path)