X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fscripts%2Fvserver-setup.functions;h=aed47d378e7a54e3ee79abb2bfc51ac4d3b2c60c;hb=75385100bedf6d457e88bc2bb942a6f0771b0e06;hp=ba1477767076a01ad067280ff2883ef85f1aee8b;hpb=b8efbdf6648075efe67c8d34e6cb7e7380de596e;p=util-vserver.git diff --git a/util-vserver/scripts/vserver-setup.functions b/util-vserver/scripts/vserver-setup.functions index ba14777..aed47d3 100644 --- a/util-vserver/scripts/vserver-setup.functions +++ b/util-vserver/scripts/vserver-setup.functions @@ -1,6 +1,6 @@ # $Id$ --*- sh -*-- -# Copyright (C) 2003 Enrico Scholz +# Copyright (C) 2003,2004,2005,2006 Enrico Scholz # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -19,60 +19,66 @@ SETUP_HOSTNAME= SETUP_NETDEV= SETUP_NETMASK= SETUP_NETPREFIX= -SETUP_BCAST= +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: $RUNDIR/rev/] + ... [default: $__RUNDIR/] --hostname --netdev - --netmask |--netprefix - ... sets the default netmask (a.b.c.d quadruple) or prefix + --netbcast + --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