projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b611393
)
Revert "assume that /sys/fs/cgroup is always per_ss=1"
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sat, 18 Feb 2012 16:37:27 +0000 (17:37 +0100)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sat, 18 Feb 2012 16:37:27 +0000 (17:37 +0100)
This reverts commit
b86560b87e73f011c96a303dcaca640eea1f2551
.
scripts/vserver.functions
patch
|
blob
|
history
diff --git
a/scripts/vserver.functions
b/scripts/vserver.functions
index
95ada0d
..
808fcd1
100644
(file)
--- 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; 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