calls 'service resman stop ' rather than the vs2ckrm off directly
authorMarc Fiuczynski <mef@cs.princeton.edu>
Wed, 20 Oct 2004 21:45:43 +0000 (21:45 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Wed, 20 Oct 2004 21:45:43 +0000 (21:45 +0000)
scripts/vuserdel

index 71fc06e..f83bbfb 100755 (executable)
@@ -4,7 +4,7 @@
 #
 # Copyright (c) 2004  The Trustees of Princeton University (Trustees).
 #
-# $Id: vuserdel,v 1.2 2004/10/20 02:56:23 mef Exp $
+# $Id: vuserdel,v 1.3 2004/10/20 19:00:52 mlhuang Exp $
 #
 
 : ${UTIL_VSERVER_VARS:=$(dirname $0)/util-vserver-vars}
@@ -27,7 +27,7 @@ NAME=$1
 vserver $NAME stop
 
 # turn resource management off for vserver $NAME
-[ -x /usr/sbin/vs2ckrm ] && /usr/sbin/vs2ckrm off $NAME
+service resman stop $NAME
 
 # delete user
 userdel -r $NAME