X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fscripts%2Fvserver-setup.functions;h=36f6ab473e7e7708b8e443f90809753541fa304b;hb=842a918cb9bcdd3b1c79dd980d2f9638b0cd6742;hp=8be229d4d1354f0986af00d4c4559400d80144f3;hpb=537f49ccb17c7bb2b5f89e057111f7f7087a3b1a;p=util-vserver.git diff --git a/util-vserver/scripts/vserver-setup.functions b/util-vserver/scripts/vserver-setup.functions index 8be229d..36f6ab4 100644 --- a/util-vserver/scripts/vserver-setup.functions +++ b/util-vserver/scripts/vserver-setup.functions @@ -21,59 +21,64 @@ SETUP_NETMASK= SETUP_NETPREFIX= SETUP_NETBCAST= SETUP_LOCKFILE= -SETUP_LOCKREVDIR= SETUP_CONFDIR= +SETUP_CONTEXT= +SETUP_INITSTYLE= declare -a SETUP_INTERFACES=() declare -a SETUP_FLAGS=() -declare -r SETUP_OPTIONS="confdir:,lockfile:,lockrevdir:,hostname:,netdev:,netmask:,netprefix:,netbcast:,interface:,flags:" +declare -r SETUP_OPTIONS="confdir:,lockfile:,hostname:,netdev:,netmask:,netprefix:,netbcast:,interface:,flags:,context:,initstyle:" declare -r SETUP_HELPMSG=$" - --confdir ... [default: $CONFDIR/] + --context ... the static context of the vserver [default: none; a dynamic + context will be assumed] + --confdir ... [default: $__CONFDIR/] --lockfile - ... [default: $RUNDIR/] - --lockrevdir - ... [default: $PKGSTATEREVDIR/] + ... [default: $__RUNDIR/] --hostname --netdev --netbcast - --netmask |--netprefix - ... sets the default netmask (a.b.c.d quadruple) or prefix + --netmask |--netprefix + ... sets the default netmask (a.b.c.d quadruple) or prefixlen (length of the interface) - --interface [=][:][/] + --interface [=][:][/] ... declares an network-interface; this option can be specified multiple times --flags + ... sets comma-separated list of flags; possible flags are lock: Prevent the vserver from setting new security context sched: Merge scheduler priority of all processes in the - vserver so that it acts a like a single one. + vserver so that it acts a like a single + one (kernel 2.4 only). nproc: Limit the number of processes in the vserver according to ulimit (instead of a per user limit, this becomes a per vserver limit) private: No other process can join this security context. Even root + --initstyle