X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gentoo%2Futil-vserver;h=ce9d1adf27f810e106dabda5b8b87546ca062ca4;hb=e56e7eebefd18c80abf0e533f3cbdd9c1c22e700;hp=3c49ce0dd493821abad1d8e153ef228539e679ce;hpb=6fdb192300e968e4a7db93060e18560a4429729e;p=util-vserver.git diff --git a/gentoo/util-vserver b/gentoo/util-vserver index 3c49ce0..ce9d1ad 100644 --- a/gentoo/util-vserver +++ b/gentoo/util-vserver @@ -23,6 +23,13 @@ start() { ebegin "Loading default device map" $__PKGLIBDIR/bash-wrapper 'handleDeviceMap --set 0 "$__CONFDIR/.defaults/apps/vdevmap"' eend $? + + $__PKGLIBDIR/bash-wrapper 'hasCgroup' + if [ $? -eq 0 ]; then + ebegin "Mounting cgroup-hierarchy" + $__PKGLIBDIR/bash-wrapper 'mount_cgroup' + eend $? + fi } stop() { @@ -42,6 +49,13 @@ stop() { ebegin "Killing all running contexts" $__PKGLIBDIR/bash-wrapper 'kill_contexts' eend $? + + $__PKGLIBDIR/bash-wrapper 'hasCgroup' + if [ $? -eq 0 ]; then + ebegin "Unmounting cgroup-hierarchy" + $__PKGLIBDIR/bash-wrapper 'umount_cgroup' + eend $? + fi } # vim:ts=4:filetype=gentoo-init-d