init script for util-vserver does not properly mount cgroups hierarchy
The init script for util-vserver is not mounting the cgroups hierarchy (namely, only one of the elements of the hierarchy) properly because of line 61:
$__PKGLIBDIR/bash-wrapper ‘_generateCgroupOptions; test -n
“$CGROUP_MNT” || exit 0; \_MKDIR -p “
CGROUP_MNT”; $_MOUNT -t cgroup
-o “CGROUP\_SUBSYS” vserver “
CGROUP_MNT”’
The problem is that $CGROUP_SUBSYS is an array and needs to be rejoined into a comma-separated list for mount. This should be sufficient:
$__PKGLIBDIR/bash-wrapper ‘_generateCgroupOptions; test -n
“$CGROUP_MNT” || exit 0; \_MKDIR -p “
CGROUP_MNT”; IFS=“,”; $_MOUNT
-t cgroup -o “{CGROUP\_SUBSYS[*]}” vserver “
CGROUP_MNT”’
If you really want I can provide a proper patch later. :p
Elizabeth
(from redmine: issue id 853, created on 2011-12-03, closed on 2011-12-23)
- Changesets:
- Revision 39c989c6 by Elizabeth Myers on 2011-12-22T15:30:08Z:
main/util-vserver: fix the init script to properly mount the entire cgroups hierarchy.
fixes #853
fixes #852