From: Tollef Fog Heen Date: Tue, 6 Mar 2012 17:08:07 +0000 (+0100) Subject: Only restart systemd-initctl.socket when running under systemd X-Git-Tag: 43-1~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02e249ec4a06586689ab64279ec2ae2f3da54e62;p=systemd Only restart systemd-initctl.socket when running under systemd --- diff --git a/debian/systemd.postinst b/debian/systemd.postinst index 6319a93c..f176f80f 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -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