projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1f59529
)
Allow something else to mount the cgroup hierarchy
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Fri, 17 Feb 2012 09:08:31 +0000 (10:08 +0100)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Fri, 17 Feb 2012 09:08:31 +0000 (10:08 +0100)
scripts/vserver-init.functions
patch
|
blob
|
history
diff --git
a/scripts/vserver-init.functions
b/scripts/vserver-init.functions
index
32c65d9
..
fef3c82
100755
(executable)
--- a/
scripts/vserver-init.functions
+++ b/
scripts/vserver-init.functions
@@
-91,7
+91,8
@@
function mount_cgroup()
if test -n "$CGROUP_MNT_PER_SS"; then
for ss in "${CGROUP_SUBSYS[@]}"; do
$_MKDIR -p "$CGROUP_MNT/$ss"
- $_MOUNT -t cgroup -o "$ss" vserver "$CGROUP_MNT/$ss"
+ $_GREP -q "$CGROUP_MNT/$ss" /proc/mounts || \
+ $_MOUNT -t cgroup -o "$ss" vserver "$CGROUP_MNT/$ss"
done
else
oIFS="$IFS"