projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
144b27f
)
Skip util-vserver files when setting up the cgroup.
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Thu, 18 Feb 2010 14:37:00 +0000 (14:37 +0000)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Thu, 18 Feb 2010 14:37:00 +0000 (14:37 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2875
94cd875c
-1c1d-0410-91d2-
eb244daf1a30
scripts/vserver.functions
patch
|
blob
|
history
diff --git
a/scripts/vserver.functions
b/scripts/vserver.functions
index
626cd07
..
59846ab
100644
(file)
--- a/
scripts/vserver.functions
+++ b/
scripts/vserver.functions
@@
-1491,7
+1491,10
@@
function _handleCgroup
shopt -s nullglob
for i in "$dir"/*; do
- cat "$i" > "$CGROUP_MNT/$name/${i##*/}"
+ f="${i##*/}"
+ test "$f" != mnt -a "$f" != subsys -a \
+ "$f" != inherit -a "$f" != name || continue
+ cat "$i" > "$CGROUP_MNT/$name/$f"
done
fi
echo "$$" > "$CGROUP_MNT/$name/tasks"