]> err.no Git - systemd/commitdiff
Only restart systemd-initctl.socket when running under systemd
authorTollef Fog Heen <tfheen@err.no>
Tue, 6 Mar 2012 17:08:07 +0000 (18:08 +0100)
committerTollef Fog Heen <tfheen@err.no>
Tue, 6 Mar 2012 17:08:07 +0000 (18:08 +0100)
debian/systemd.postinst

index 6319a93c692102677ae5e6d8f97d705164b0bbd6..f176f80f023146b52f28a0c7be61db1d78f4b1ae 100644 (file)
@@ -43,7 +43,7 @@ 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
+        _systemctl restart systemd-initctl.socket || true
     fi
 fi