X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fvuseradd;h=fa580152174b189fa23eaa7373a5b2955ba0c6b3;hb=6423537ce2aa8b4e6ca9d58ec9826bc62e20b06b;hp=aa1210be9ff07b359fc38d0bcea354b43ed997e3;hpb=73929cd988b29cc673ff12945fc921957bd3ce78;p=util-vserver-pl.git diff --git a/scripts/vuseradd b/scripts/vuseradd index aa1210b..fa58015 100755 --- a/scripts/vuseradd +++ b/scripts/vuseradd @@ -5,7 +5,7 @@ # Mark Huang # Copyright (C) 2004-2006 The Trustees of Princeton University # -# $Id: vuseradd,v 1.28 2007/07/05 19:05:14 dhozac Exp $ +# $Id$ # : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} @@ -88,16 +88,16 @@ if [ ! -d $__CONFDIR/$NAME ] ; then fi mkdir -p $DIR/apps/init $DIR/rlimits $DIR/sched $DIR/dlimits/0 echo default > $DIR/apps/init/mark - echo 1000 > $DIR/rlimits/nproc + echo 1000 > $DIR/rlimits/nproc.hard # Set persistent for the network context echo persistent > $DIR/nflags # Set up the scheduler - echo 1000 > $DIR/sched/interval + echo 100 > $DIR/sched/interval echo 1000 > $DIR/sched/interval2 echo 0 > $DIR/sched/fill-rate - echo 32 > $DIR/sched/fill-rate2 + echo 1 > $DIR/sched/fill-rate2 touch $DIR/sched/idle-time echo 100 > $DIR/sched/tokens echo 50 > $DIR/sched/tokens-min @@ -109,6 +109,9 @@ if [ ! -d $__CONFDIR/$NAME ] ; then echo -1 > $DIR/dlimits/0/inodes_total echo -1 > $DIR/dlimits/0/space_total + # Disable mount namespaces + touch $DIR/nonamespace + # Remove the basically empty guest directory rm -rf $__DEFAULT_VSERVERDIR/$NAME # Move the guest back