git://git.onelab.eu
/
util-vserver-pl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of the context on vuserdel.
[util-vserver-pl.git]
/
scripts
/
vuserdel
diff --git
a/scripts/vuserdel
b/scripts/vuserdel
index
778a0fa
..
c0a4cee
100755
(executable)
--- a/
scripts/vuserdel
+++ b/
scripts/vuserdel
@@
-4,7
+4,7
@@
#
# Copyright (c) 2004 The Trustees of Princeton University (Trustees).
#
#
# Copyright (c) 2004 The Trustees of Princeton University (Trustees).
#
-# $Id
: vuserdel,v 1.11 2007/06/29 14:13:01 dhozac Exp
$
+# $Id$
#
: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
#
: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
@@
-28,7
+28,11
@@
NAME=$1
CTX=`cat $__CONFDIR/$NAME/context`
# don't bother stopping gracefully, just kill all the processes
CTX=`cat $__CONFDIR/$NAME/context`
# don't bother stopping gracefully, just kill all the processes
-chcontext --silent --secure --ctx $CTX $__LEGACYDIR/vserverkillall
+$_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`
# unmount any directories in vserver that are mount points
for d in `sed -ne "s%^[^ ]* \($__DEFAULT_VSERVERDIR/$NAME/[^ ]*\) .*%\1%p" /proc/mounts`