umount them all
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Tue, 29 Mar 2011 21:09:36 +0000 (23:09 +0200)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Tue, 29 Mar 2011 21:09:36 +0000 (23:09 +0200)
sysv/util-vserver

index 5a13a3d..8cc173f 100755 (executable)
@@ -85,7 +85,13 @@ function umount_cgroup()
 {
     _generateCgroupOptions
     test -n "$CGROUP_MNT" || return 0
-    $_UMOUNT "$CGROUP_MNT"
+    if test -n "$CGROUP_MNT_PER_SS"; then
+       for ss in "${CGROUP_SUBSYS[@]}"; do
+           $_UMOUNT "$CGROUP_MNT/$ss"
+       done
+    else
+       $_UMOUNT "$CGROUP_MNT"
+    fi
 }
 
 function start()