From 41060f5ad5690d22c0df7f4991084ac4a69ca448 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 3 Apr 2012 19:59:14 +0200 Subject: [PATCH] Always restart the initctl socket on upgrades, to mask sysvinit removing it. --- debian/changelog | 2 ++ debian/systemd.postinst | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index bf17046b..89f2e274 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,8 @@ systemd (44-1) UNRELEASED; urgency=low * Explicitly order debian-fixup before sysinit.target to prevent a possible race condition with the creation of sockets. Thanks to Michael Biebl for debugging this. + * Always restart the initctl socket on upgrades, to mask sysvinit + removing it. [ Michael Biebl ] * Remove workaround for non-interactive sessions from pam config again. diff --git a/debian/systemd.postinst b/debian/systemd.postinst index 97ff835f..366f7f54 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -40,11 +40,9 @@ EOF fi fi -if dpkg --compare-versions "$2" lt "37-1.1"; then - # Create /run/initctl → /dev/initctl compat symlink on upgrades - if [ -e /sys/fs/cgroup/systemd ]; then - _systemctl restart systemd-initctl.socket || true - fi +# Create /run/initctl → /dev/initctl compat symlink on upgrades +if [ -e /sys/fs/cgroup/systemd ]; then + _systemctl restart systemd-initctl.socket || true fi if dpkg --compare-versions "$2" lt "40-1"; then -- 2.39.5