git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2882
94cd875c-1c1d-0410-91d2-
eb244daf1a30
findFile file "$__CONFDIR/.defaults/cgroup/subsys" ""
if test -n "$file"; then
read CGROUP_SUBSYS < "$file"
+ elif $_GREP -q '^ns[[:space:]]' /proc/cgroups; then
+ # Hack for the ns subsystem, with which we are incompatible
+ CGROUP_SUBSYS=$($_SED '/^#/d;/^ns[[:space:]]/d;s/[[:space:]].*//' /proc/cgroups | \
+ (s=""; while read x; do test -n "$s" && s="$s,"; s="$s$x"; done; echo "$s"))
fi
findFile file "$__CONFDIR/.defaults/cgroup/inherit" ""
if test -n "$file"; then