diff options
author | root <root@rshg054.dnsready.net> | 2012-10-23 01:37:15 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-23 01:37:15 -0700 |
commit | 3c19af9355ba86a5b99d6e5a57ecaa68a7ea6e8e (patch) | |
tree | 8fac31deec086251b3b9dc8faddfe14f5667392b /testing/systemd/systemd.install | |
parent | 99746708edfd2c56f2ba654a14f27e98b1601a43 (diff) |
Tue Oct 23 01:37:02 PDT 2012
Diffstat (limited to 'testing/systemd/systemd.install')
-rw-r--r-- | testing/systemd/systemd.install | 8 |
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: |