manager: don't even think of enumerating sysv services in user instances

This commit is contained in:
Lennart Poettering 2011-07-01 23:53:44 +02:00
parent 5c94603d4c
commit b1bc08e599

View File

@ -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)