From 5b4fe63afd4c36b501782e4cd54454f0d262e097 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Thu, 6 Oct 2016 12:06:22 +0200 Subject: functions: more reliable systemd detection logic --- rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d') diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 0f1d0420..3bad6f71 100644 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -14,7 +14,7 @@ PATH="/sbin:/usr/sbin:/bin:/usr/bin" export PATH if [ $PPID -ne 1 -a -z "$SYSTEMCTL_SKIP_REDIRECT" ] && \ - ( /bin/mountpoint -q /cgroup/systemd || /bin/mountpoint -q /sys/fs/cgroup/systemd ) ; then + [ -d /run/systemd/system ] ; then case "$0" in /etc/init.d/*|/etc/rc.d/init.d/*) _use_systemctl=1 -- cgit v1.2.1