Browse Source

added systemd detection, since systemd mounts the cgroups sanely already itself

tags/1.0
Tianon Gravi 7 years ago
parent
commit
bcfdb011d2
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      debian/cgroupfs-mount.init

+ 6
- 0
debian/cgroupfs-mount.init View File

@@ -15,6 +15,12 @@ set -e

BASE=$(basename $0)

# Test for systemd and bail (we have to test before sourcing init-functions, or systemd hijacks us)
# We bail because systemd already mounts cgroups sanely, so we just silently pretend we were successful in mounting them here
if [ -d /run/systemd/system ]; then
exit 0
fi

# Get lsb functions
. /lib/lsb/init-functions



Loading…
Cancel
Save