Skip to content
Browse files

Revert "Remove cleanup of old cgroup mount"

This reverts commit e932f25.
  • Loading branch information...
1 parent 7bea55d commit eaeb910e6e74172e71a0be87bac043b366629bfb @Kaixiang Kaixiang committed Sep 12, 2013
Showing with 11 additions and 0 deletions.
  1. +11 −0 warden/root/linux/setup.sh
View
11 warden/root/linux/setup.sh
@@ -7,6 +7,17 @@ shopt -s nullglob
cd $(dirname "${0}")
+# Check if the old mount point exists, and if so clean it up
+if [ -d /dev/cgroup ]
+then
+ if grep -q /dev/cgroup /proc/mounts
+ then
+ umount /dev/cgroup
+ fi
+
+ rmdir /dev/cgroup
+fi
+
cgroup_path=/tmp/warden/cgroup
if [ ! -d $cgroup_path ]

0 comments on commit eaeb910

Please sign in to comment.
Something went wrong with that request. Please try again.