projects
/
matthijs
/
servers
/
drsnuggles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a0af5ad
)
vserver: Add some comments to the vserver-create script.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 16 Oct 2008 14:17:03 +0000
(16:17 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 16 Oct 2008 14:17:27 +0000
(16:17 +0200)
usr/local/bin/vserver-create
patch
|
blob
|
history
diff --git
a/usr/local/bin/vserver-create
b/usr/local/bin/vserver-create
index 91c4d5070be14d8fef3b36bf39f02803634c28fb..7311ab185534a9b3367a162df1afbb502320ed2a 100755
(executable)
--- a/
usr/local/bin/vserver-create
+++ b/
usr/local/bin/vserver-create
@@
-1,10
+1,18
@@
#!/bin/sh
#!/bin/sh
-TEMPLATE=template
+# The dir containing vserver configuration
VSERVERS_CONF=/etc/vservers
VSERVERS_CONF=/etc/vservers
+# The vserver to use as a template
+TEMPLATE=template
+# A file containing files (or masks) to not copy from the template vserver.
EXCLUDE_FILE="$VSERVERS_CONF/clone-exclude"
EXCLUDE_FILE="$VSERVERS_CONF/clone-exclude"
+# The ip range to use for creating a new vserver. A number between 2 and 253
+# will be appended to this, until an address is found that is not used by
+# another vserver..
IP_RANGE=10.42.0.
IP_RANGE=10.42.0.
+# The interface on which to create the vserver
INTERFACE=dummy0
INTERFACE=dummy0
+# The netmask for the address
NETMASK=24
function usage()
NETMASK=24
function usage()