From: Benedikt Böhm Date: Sat, 18 Feb 2012 16:01:36 +0000 (+0100) Subject: assume that /sys/fs/cgroup is always per_ss=1 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b86560b87e73f011c96a303dcaca640eea1f2551;p=util-vserver.git assume that /sys/fs/cgroup is always per_ss=1 --- diff --git a/scripts/vserver.functions b/scripts/vserver.functions index 808fcd1..95ada0d 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -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 -a -d /sys/fs/cgroup/"${CGROUP_SUBSYS[0]}"; then + elif test -d /sys/fs/cgroup; then CGROUP_MNT=/sys/fs/cgroup CGROUP_MNT_PER_SS=1 fi