Commit 69bb5aaf authored by Michael Biebl's avatar Michael Biebl

Ordering fixes for systemd-user-sessions.service

* Order systemd-user-sessions.service after nss-user-lookup.target. We
  should not allow logins before NIS/LDAP users are available.
* Order systemd-user-sessions.service after network.target. That way we can
  be sure that local users are logged out and SSH sessions are ended cleanly
  before the network is shut down when the system goes down.
parent 9b9528c3
......@@ -14,6 +14,11 @@ systemd (215-17+deb8u5) UNRELEASED; urgency=medium
* Don't start console-getty.service when /dev/console is missing.
Avoids repeated unsuccessful start attempts of agetty inside (docker)
containers. (Closes: #829537)
* Order systemd-user-sessions.service after nss-user-lookup.target. We
should not allow logins before NIS/LDAP users are available.
* Order systemd-user-sessions.service after network.target. That way we can
be sure that local users are logged out and SSH sessions are ended cleanly
before the network is shut down when the system goes down.
-- Michael Biebl <biebl@debian.org> Fri, 01 Jul 2016 17:35:05 +0200
......
......@@ -163,6 +163,8 @@ core-don-t-reset-log-level-to-NOTICE-if-we-get-quiet-on-t.patch
sd-event-fix-prepare-priority-queue-comparison-function.patch
man-update-links-to-kernel.org-cgroup-documentation.patch
console-getty.service-don-t-start-when-dev-console-is-mis.patch
units-explicitly-order-systemd-user-sessions.service-afte.patch
units-order-systemd-user-sessions.service-after-network.t.patch
## Debian specific patches:
Add-back-support-for-Debian-specific-config-files.patch
......
From: Lennart Poettering <lennart@poettering.net>
Date: Fri, 3 Apr 2015 14:31:35 +0200
Subject: units: explicitly order systemd-user-sessions.service after
nss-user-lookup.target
We should not allow logins before NIS/LDAP users are available.
(cherry-picked from commit efb3e19be9c568974b221990b9e84fb5304c5537)
---
units/systemd-user-sessions.service.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/units/systemd-user-sessions.service.in b/units/systemd-user-sessions.service.in
index 0869e73..c09c05d 100644
--- a/units/systemd-user-sessions.service.in
+++ b/units/systemd-user-sessions.service.in
@@ -8,7 +8,7 @@
[Unit]
Description=Permit User Sessions
Documentation=man:systemd-user-sessions.service(8)
-After=remote-fs.target
+After=remote-fs.target nss-user-lookup.target
[Service]
Type=oneshot
From: Lennart Poettering <lennart@poettering.net>
Date: Wed, 20 Apr 2016 20:12:14 +0200
Subject: units: order systemd-user-sessions.service after network.target
That way we can be sure that local users are logged out before the network is
shut down when the system goes down, so that SSH session should be ending
cleanly before the system goes down.
Fixes: #2390
(cherry-picked from commit 8c856804780681e135d98ca94d08afe247557770)
---
units/systemd-user-sessions.service.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/units/systemd-user-sessions.service.in b/units/systemd-user-sessions.service.in
index c09c05d..b4ea5a1 100644
--- a/units/systemd-user-sessions.service.in
+++ b/units/systemd-user-sessions.service.in
@@ -8,7 +8,7 @@
[Unit]
Description=Permit User Sessions
Documentation=man:systemd-user-sessions.service(8)
-After=remote-fs.target nss-user-lookup.target
+After=remote-fs.target nss-user-lookup.target network.target
[Service]
Type=oneshot
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment