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 source ${UTIL_VSERVER_VARS}
39 source "$_LIB_FUNCTIONS"
40 source "$__PKGLIBDIR/vserver.functions"
42 ebegin "Setting vshelper path to $_VSHELPER"
46 ebegin "Loading default device map"
47 loadDeviceMap 0 "$__CONFDIR/.defaults/apps/vdevmap"
52 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
53 if [[ ! -e ${UTIL_VSERVER_VARS} ]]; then
54 eerror "Cannot find util-vserver installation"
55 eerror "(the file '$UTIL_VSERVER_VARS' would be expected)"
59 source ${UTIL_VSERVER_VARS}
60 source "$_LIB_FUNCTIONS"
61 source "$__PKGLIBDIR/vserver.functions"
63 ebegin "Stopping all running guests"
64 $_START_VSERVERS -j 1 --all --stop
67 ebegin "Killing all running contexts"
72 # vim:ts=4:filetype=gentoo-init-d