From e14b697bbed100fa819b9cfedbcd889cef88e237 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 24 Jul 2013 23:26:24 +0200 Subject: [PATCH] Restart systemd-logind.service on upgrades The CreateSession D-Bus API of systemd-logind changed between v44 and v204 [1]. As result, newer versions of libpam-systemd fail to register a new session if they talk to the old systemd-logind process. Restarting systemd-logind.service when upgrading from v44 means we will lose existing sessions, but as wheezy still has ConsoleKit as default, this shouldn't matter that much. Closes: #717403 [1] https://bugs.freedesktop.org/show_bug.cgi?id=67131 --- debian/systemd.postinst | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/systemd.postinst b/debian/systemd.postinst index 77a8b5566..c4e2d62bc 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -28,6 +28,7 @@ fi if [ -n "$2" ]; then _systemctl daemon-reexec || true _systemctl try-restart systemd-journald.service || true + _systemctl try-restart systemd-logind.service || true fi # Do a one-time migration of the local time setting