summaryrefslogtreecommitdiff
path: root/testing/systemd/systemd.install
diff options
context:
space:
mode:
Diffstat (limited to 'testing/systemd/systemd.install')
-rw-r--r--testing/systemd/systemd.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/systemd/systemd.install b/testing/systemd/systemd.install
index fa3e8f29a..5d6689c59 100644
--- a/testing/systemd/systemd.install
+++ b/testing/systemd/systemd.install
@@ -29,6 +29,14 @@ post_upgrade() {
printf '==> journald now writes to /var/log/journal by default. This can be\n'
printf ' controlled with the Storage setting in /etc/systemd/journald.conf\n'
fi
+
+ # logind's protocol changed. kindly restart the daemon to avoid locking
+ # out further logins.
+ if [ "$(vercmp 195 "$2")" -eq 1 ]; then
+ if sd_booted; then
+ systemctl restart systemd-logind.service
+ fi
+ fi
}
# vim:set ts=2 sw=2 et: