From 02e249ec4a06586689ab64279ec2ae2f3da54e62 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 6 Mar 2012 18:08:07 +0100 Subject: [PATCH] Only restart systemd-initctl.socket when running under systemd --- debian/systemd.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5