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
This commit is contained in:
Michael Biebl 2013-07-24 23:26:24 +02:00
parent e7408c3c00
commit e14b697bbe

View File

@ -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