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=116c744b2f086b000adc8c6911a4cb4cae3dc8ca;hp=236f2147d3c593b92ea809ea3d8a6d2d408f9ce1;hpb=890826f4f94f8a568d1733a2c7f070e0fd8386a8;p=util-vserver.git diff --git a/util-vserver/scripts/vserver-setup.functions b/util-vserver/scripts/vserver-setup.functions index 236f214..36f6ab4 100644 --- a/util-vserver/scripts/vserver-setup.functions +++ b/util-vserver/scripts/vserver-setup.functions @@ -21,41 +21,42 @@ 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:,context:" +declare -r SETUP_OPTIONS="confdir:,lockfile:,hostname:,netdev:,netmask:,netprefix:,netbcast:,interface:,flags:,context:,initstyle:" declare -r SETUP_HELPMSG=$" --context ... the static context of the vserver [default: none; a dynamic context will be assumed] - --confdir ... [default: $CONFDIR/] + --confdir ... [default: $__CONFDIR/] --lockfile - ... [default: $RUNDIR/] - --lockrevdir - ... [default: $CONFDIR/.defaults/run.rev] + ... [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