175df824f1f452ace419755b1136994e120d81dd5subrata_modak#! /bin/bash
275df824f1f452ace419755b1136994e120d81dd5subrata_modak
375df824f1f452ace419755b1136994e120d81dd5subrata_modak################################################################################
475df824f1f452ace419755b1136994e120d81dd5subrata_modak##                                                                            ##
575df824f1f452ace419755b1136994e120d81dd5subrata_modak## Copyright (c) 2009 FUJITSU LIMITED                                         ##
675df824f1f452ace419755b1136994e120d81dd5subrata_modak##                                                                            ##
775df824f1f452ace419755b1136994e120d81dd5subrata_modak## This program is free software;  you can redistribute it and#or modify      ##
875df824f1f452ace419755b1136994e120d81dd5subrata_modak## it under the terms of the GNU General Public License as published by       ##
975df824f1f452ace419755b1136994e120d81dd5subrata_modak## the Free Software Foundation; either version 2 of the License, or          ##
1075df824f1f452ace419755b1136994e120d81dd5subrata_modak## (at your option) any later version.                                        ##
1175df824f1f452ace419755b1136994e120d81dd5subrata_modak##                                                                            ##
1275df824f1f452ace419755b1136994e120d81dd5subrata_modak## This program is distributed in the hope that it will be useful, but        ##
1375df824f1f452ace419755b1136994e120d81dd5subrata_modak## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
1475df824f1f452ace419755b1136994e120d81dd5subrata_modak## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   ##
1575df824f1f452ace419755b1136994e120d81dd5subrata_modak## for more details.                                                          ##
1675df824f1f452ace419755b1136994e120d81dd5subrata_modak##                                                                            ##
1775df824f1f452ace419755b1136994e120d81dd5subrata_modak## You should have received a copy of the GNU General Public License          ##
1875df824f1f452ace419755b1136994e120d81dd5subrata_modak## along with this program;  if not, write to the Free Software               ##
194548c6cf9bcdd96d8303caa4130ab638b61f8a30Wanlong Gao## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA    ##
2075df824f1f452ace419755b1136994e120d81dd5subrata_modak##                                                                            ##
2175df824f1f452ace419755b1136994e120d81dd5subrata_modak## Author: Li Zefan <lizf@cn.fujitsu.com>                                     ##
2275df824f1f452ace419755b1136994e120d81dd5subrata_modak##                                                                            ##
2375df824f1f452ace419755b1136994e120d81dd5subrata_modak################################################################################
2475df824f1f452ace419755b1136994e120d81dd5subrata_modak
258542ed618f00a38cfda7600384a007f9911e5b55Jan Stancektrap exit SIGUSR1
2675df824f1f452ace419755b1136994e120d81dd5subrata_modakfor ((; ;))
2775df824f1f452ace419755b1136994e120d81dd5subrata_modak{
2875df824f1f452ace419755b1136994e120d81dd5subrata_modak	mount -t cgroup -o ns xxx cgroup/ > /dev/null 2>&1
2975df824f1f452ace419755b1136994e120d81dd5subrata_modak	rmdir cgroup/[1-9]* > /dev/null 2>&1
3075df824f1f452ace419755b1136994e120d81dd5subrata_modak	umount cgroup/ > /dev/null 2>&1
3175df824f1f452ace419755b1136994e120d81dd5subrata_modak}
3275df824f1f452ace419755b1136994e120d81dd5subrata_modak
33