summaryrefslogtreecommitdiff
path: root/src/login/logind-session.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-07-10 23:39:46 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-10 23:41:04 +0200
commit7fb3ee51c1b37738fd0ea2c81dfd6c336144698a (patch)
tree1a0def1b9d80726c7c12d2154446b48cb25c3fca /src/login/logind-session.c
parentf2d4f98d5873e0649b79b04b967fc9625ab3a350 (diff)
user-sessions: rely on PID 1 to kill sessions
As we want to centralized cgroup access we should stop killing the user sessions directly from the systemd-user-sessions service. Instead, rely on PID 1 doing this by adding the right ordering dependencies to the session scope units.
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r--src/login/logind-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index 3c67f86b17..db22150825 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -474,7 +474,7 @@ static int session_start_scope(Session *s) {
description = strjoin("Session ", s->id, " of user ", s->user->name, NULL);
- r = manager_start_scope(s->manager, scope, s->leader, s->user->slice, description, &error, &job);
+ r = manager_start_scope(s->manager, scope, s->leader, s->user->slice, description, "systemd-user-sessions.service", &error, &job);
if (r < 0) {
log_error("Failed to start session scope: %s %s", bus_error(&error, r), error.name);
dbus_error_free(&error);