projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d644358
)
Skip disabled subsystems
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Mon, 6 Feb 2012 09:47:55 +0000 (10:47 +0100)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Mon, 6 Feb 2012 09:47:55 +0000 (10:47 +0100)
scripts/vserver.functions
patch
|
blob
|
history
diff --git
a/scripts/vserver.functions
b/scripts/vserver.functions
index
4cf8024
..
1367676
100644
(file)
--- a/
scripts/vserver.functions
+++ b/
scripts/vserver.functions
@@
-1482,7
+1482,7
@@
function _generateCgroupOptions
if test -n "$file"; then
_readFileToArray CGROUP_SUBSYS "$file"
else
- CGROUP_SUBSYS=( $($_SED '/^#/d;/^ns[[:space:]]/d;s/[[:space:]].*//' /proc/cgroups) )
+ CGROUP_SUBSYS=( $($_AWK '/^#/ { next; } $1 == "ns" { next; } $4 != "0" { printf "%s%s", s, $1; s=","; }' /proc/cgroups) )
fi
findFile file "$__CONFDIR/.defaults/cgroup/inherit" ""
if test -n "$file"; then