2 # Copyright 1999-2007 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
6 local f="/proc/sys/kernel/vshelper"
8 echo "$_VSHELPER" > "$f"
15 for xid in `ls -1 /proc/virtual`; do
16 [ "$xid" = "info" -o "$xid" = "status" ] && continue
17 $_VATTRIBUTE --xid $xid --set --flag ~persistent
18 $_VKILL --xid $xid -s 15
20 $_VKILL --xid $xid -s 9
23 for xid in `ls -1 /proc/virtual`; do
24 [ "$xid" = "info" -o "$xid" = "status" ] && continue
31 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
32 if [ ! -e ${UTIL_VSERVER_VARS} ]; then
33 eerror "Cannot find util-vserver installation"
34 eerror "(the file '$UTIL_VSERVER_VARS' would be expected)"
38 . ${UTIL_VSERVER_VARS}
40 ebegin "Setting vshelper path to $_VSHELPER"
44 ebegin "Loading default device map"
45 $__PKGLIBDIR/bash-wrapper 'handleDeviceMap --set 0 "$__CONFDIR/.defaults/apps/vdevmap"'
50 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
51 if [ ! -e ${UTIL_VSERVER_VARS} ]; then
52 eerror "Cannot find util-vserver installation"
53 eerror "(the file '$UTIL_VSERVER_VARS' would be expected)"
57 . ${UTIL_VSERVER_VARS}
59 ebegin "Stopping all running guests"
60 $_START_VSERVERS -j 1 --all --stop
63 ebegin "Killing all running contexts"
68 # vim:ts=4:filetype=gentoo-init-d