summaryrefslogtreecommitdiff
path: root/src/login/logind-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-07 16:42:03 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-07 17:49:16 +0100
commitba4c5d93b73ef7bba0ae0c6bf2b36a42360f7a34 (patch)
treebabd4d0ff8b8bef6c892dc2ec9d5f6004d4673e9 /src/login/logind-dbus.c
parent1a436809498faf6486815baa0338fb6b8e5def07 (diff)
logind: order all scopes after both systemd-logind.service and
systemd-user-sessions.service This way at shutdown we can be sure that the sessions go away before the network.
Diffstat (limited to 'src/login/logind-dbus.c')
-rw-r--r--src/login/logind-dbus.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 28b5cd49a7..30476f3ea4 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -2178,7 +2178,7 @@ int manager_start_scope(
pid_t pid,
const char *slice,
const char *description,
- const char *after,
+ const char *after, const char *after2,
sd_bus_error *error,
char **job) {
@@ -2219,12 +2219,18 @@ int manager_start_scope(
return r;
}
- if (!isempty(description)) {
+ if (!isempty(after)) {
r = sd_bus_message_append(m, "(sv)", "After", "as", 1, after);
if (r < 0)
return r;
}
+ if (!isempty(after2)) {
+ r = sd_bus_message_append(m, "(sv)", "After", "as", 1, after2);
+ if (r < 0)
+ return r;
+ }
+
/* cgroup empty notification is not available in containers
* currently. To make this less problematic, let's shorten the
* stop timeout for sessions, so that we don't wait