-# read config file to get context ID
-CTX=`cat $__CONFDIR/$NAME/context`
-
-# don't bother stopping gracefully, just kill all the processes
-$_VKILL -c "$CTX" -s 15 -1
-sleep 2
-$_VKILL -c "$CTX" -s 9 -1
-$_VATTRIBUTE --set --xid "$CTX" --flag ~persistent
-$_NATTRIBUTE --set --nid "$CTX" --flag ~persistent
-
-# unmount any directories in vserver that are mount points
-for d in `sed -ne "s%^[^ ]* \($__DEFAULT_VSERVERDIR/$NAME/[^ ]*\) .*%\1%p" /proc/mounts`
-do
- # use echo -e to turn escaped whitespace back into regular chars
- # be careful about embedded backquotes here (i think we're safe)
- dir=`echo -e "$d"`
- echo "unmounting $dir"
- umount -l "$dir"
-done
-