Revert "assume that /sys/fs/cgroup is always per_ss=1"
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Sat, 18 Feb 2012 16:37:27 +0000 (17:37 +0100)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Sat, 18 Feb 2012 16:37:27 +0000 (17:37 +0100)
This reverts commit b86560b87e73f011c96a303dcaca640eea1f2551.

scripts/vserver.functions

index 95ada0d..808fcd1 100644 (file)
@@ -1491,7 +1491,7 @@ function _generateCgroupOptions
     findFile file "$__CONFDIR/.defaults/cgroup/mnt" ""
     if test -n "$file"; then
        read CGROUP_MNT < "$file"
-    elif test -d /sys/fs/cgroup; then
+    elif test -d /sys/fs/cgroup -a -d /sys/fs/cgroup/"${CGROUP_SUBSYS[0]}"; then
        CGROUP_MNT=/sys/fs/cgroup
        CGROUP_MNT_PER_SS=1
     fi