aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Cavalca <dcavalca@fb.com>2016-10-06 12:06:22 +0200
committerLukáš Nykrýn <lnykryn@redhat.com>2016-10-06 13:10:42 +0200
commit5b4fe63afd4c36b501782e4cd54454f0d262e097 (patch)
tree6d41eaa1f03dbcf61c306c404a3ce11c5ecfe5d1
parentdb3e951ab5333a003cfd8276437fb00a71fae334 (diff)
downloadinitscripts-5b4fe63afd4c36b501782e4cd54454f0d262e097.tar
initscripts-5b4fe63afd4c36b501782e4cd54454f0d262e097.tar.gz
initscripts-5b4fe63afd4c36b501782e4cd54454f0d262e097.tar.bz2
initscripts-5b4fe63afd4c36b501782e4cd54454f0d262e097.tar.xz
initscripts-5b4fe63afd4c36b501782e4cd54454f0d262e097.zip
functions: more reliable systemd detection logic
-rw-r--r--rc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
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