]> err.no Git - systemd/commitdiff
Always restart the initctl socket on upgrades, to mask sysvinit removing it.
authorTollef Fog Heen <tfheen@err.no>
Tue, 3 Apr 2012 17:59:14 +0000 (19:59 +0200)
committerTollef Fog Heen <tfheen@err.no>
Tue, 3 Apr 2012 17:59:14 +0000 (19:59 +0200)
debian/changelog
debian/systemd.postinst

index bf17046b0fd6bdf89bc3832a145fe8d2f5e05edb..89f2e27481efb1e91b6d87489877a81c99f523ac 100644 (file)
@@ -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.
index 97ff835f4e6c0c44566a5aba69b4a0611ff4628f..366f7f545cfc002160f9821c00777dc442402255 100644 (file)
@@ -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