From: Lennart Poettering Date: Fri, 1 Jul 2011 21:53:44 +0000 (+0200) Subject: manager: don't even think of enumerating sysv services in user instances X-Git-Tag: v30~70 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1bc08e599ae7760c7bcb29923ef5e1f92be2af7;p=systemd manager: don't even think of enumerating sysv services in user instances --- diff --git a/src/service.c b/src/service.c index 4ee7900e..165655eb 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)