added new markup
[util-vserver.git] / util-vserver / doc / configuration.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE database SYSTEM "configuration.dtd" []>
3 <!-- $Id$ -->
4
5 <database xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6           xsi:noNamespaceSchemaLocation="file:configuration.xsd">
7
8   <!-- Global configuration -->
9   <collection name=".defaults" use="optional">
10     <collection name="init" type="fixed">
11       <data name="mtab">
12         <description>Default mtab file</description>
13       </data>
14     </collection>
15
16     <link name="vdirbase">
17       <default>/vservers</default>
18       <description>A link to the default vserver rootdirectory.</description>
19     </link>
20
21
22     <boolean id="global-nonamespace" name="nonamespace">
23       <description>
24 Disable namespace usage globally. It can be overridden for a single vserver
25 by setting the <optionref ref="global-namespace">namespace</optionref> flag
26 there.
27
28 In this mode the /vservers directory must have the 'barrier'
29 attribute. Else, common chroot(2) exploits are possible.
30       </description>
31     </boolean>
32
33     <link name="run.rev">
34       <description>
35 Path of the vserver run reverse directory. This directory contains
36 symlinks named with XID numbers which point back to the configuration
37 directory of vservers. Under kernel 2.4 this is required for the XID
38 to VSERVER mapping; Under kernel 2.6 it is unused.
39
40 NOTE: this link exists in 0.30.202+ only; in previous versions it was
41 a vserver specific setting.
42       </description>
43     </link>
44     
45     <collection name="apps">
46       <collection name="pkgmgmt">
47         <link name="base">
48           <default>/vservers/.pkg</default>
49         </link> 
50         <data name="apt.conf">
51           <description>The default apt.conf which is going to be used. It is overridden by
52 distribution specific configuration file.
53           </description>
54         </data>
55       </collection>
56       
57       <collection name="debootstrap">
58         <scalar name="mirror">
59           <description>
60 The Debian mirror to use with the <tool>debootstrap</tool> program
61           </description>
62         </scalar>
63         <scalar name="uri">
64           <description>
65 When the <tool>debootstrap</tool> package is not installed; fetch it
66 from this uri and install it at a temporary place.
67           </description>
68         </scalar>
69       </collection>
70
71       <collection name="vshelper">
72         <link name="logfile">
73           <description>
74 The file where output will be logged to when <tool>vshelper</tool>
75 is invoked from the kernel. This should point somewhere e.g. into
76 /var/log.
77           </description>
78         </link>
79
80         <collection name="vshelper-methods">
81           <program name="handler" type="symbolic">
82             <description>
83 See vshelper/action.
84             </description>
85           </program>
86         </collection>
87
88         <boolean name="disabled">
89           <description>
90 When existing, the vshelper functionality will be disabled for all
91 vservers.
92           </description>
93         </boolean>
94
95         <boolean name="debug">
96           <description>
97 When existing, the vshelper execution will be traced.
98           </description>
99         </boolean>
100         
101         <boolean name="warning-disabled">
102           <description>
103 When existing, sanity checks for the vshelper functionality will be
104 skipped.
105           </description>
106         </boolean>
107
108       </collection>
109       
110       <collection name="vprocunhide">
111         <list name="files">
112           <description>
113 A list of files which will be made visibly by vprocunhide. Wildcards are
114 allowed and anything ending in '/' will be processed recursively. When this file exists,
115 it overrides the defaults in SYSDEFAULTDIR/vprocunhide-files. The entries there must be
116 absolute filenames inclusive the leading '/proc'.
117           </description>
118         </list>
119       </collection>
120       
121       <collection name="init">
122         <link name="tty">
123           <description>
124 A symlink to the TTY device where input/output will be redirected from/to
125 at startup via initscript.
126           </description>
127         </link>
128       </collection>
129       
130       <collection name="vunify">
131         <list name="exclude">
132           <description>Static list of excluded files.</description>
133         </list>
134
135         <collection name="hash" since="0.30.205">
136           <description>
137 A directory which will be used as the storage place for the
138 <tool>vhashify</tool> command.
139           </description>
140           <link name="id" type="symbolic">
141             <description>
142 Points to a directory within the filesystems which are used for the
143 vservers. There must be not more than one of such a directory per
144 filesystem.
145             </description>
146           </link>
147
148           <scalar name="method" since="0.30.299">
149             <default>SHA1</default>
150             <description>The used hash method.</description>
151           </scalar>
152         </collection>
153
154         <boolean name="pkgmgmt-ignore" default="off" since="0.30.205">
155           <description>
156 When existing, information from packagemanagement will not be used to
157 create dynamic exclude-lists.
158           </description>
159         </boolean>
160
161         <boolean name="pgkmgmt-force" default="off" since="0.30.205">
162           <description>
163 When existing, information from packagemanagement will be used to
164 create dynamic exclude-lists. This option requires that (a known)
165 packagemanagement is configured for the vserver; else the requested
166 operation will fail. Most tools assume 'on' as the default value.
167           </description>
168         </boolean>
169
170       </collection>
171     </collection>
172   </collection>
173     
174   <collection name=".distributions" use="optional">
175     <collection name="dist" type="symbolic">
176       <scalar name="dev">
177         <description></description>
178       </scalar>
179       <collection name="yum">
180         <description>
181 The default, yum-related content of the /etc directory.
182         </description>
183         <scalar name="yum.conf">
184           <description>
185 The master yum configuration file. It supports the @YUMETCDIR@,
186 @YUMCACHEDIR@ and @YUMLOGDIR@ placeholder which will be replaced at
187 <command>vserver ... build</command> time.
188           </description>
189         </scalar>
190       </collection>
191       <collection name="yum.repos.d">
192         <description>A directory with yum repositories.</description>
193       </collection>
194       <data name="apt.conf">
195         <description>
196 The default apt.conf which is going to be used. It overrides the
197 apt.conf from CONFDIR/.defaults/apps/pkgmgmt.
198         </description>
199       </data>
200       <program name="initpre">
201         <description>
202 Script which will be executed before packages will be installed.
203           </description>
204         <parameterList>
205           <parameter name="confdir">
206             <description>
207 The configuration directory of the vserver which is going to be set up.
208             </description>
209           </parameter>
210           <parameter name="vserver">
211             <description>
212 The pathname of the vserver binary.
213             </description>
214           </parameter>
215         </parameterList>
216       </program>
217       <program name="initpost">
218         <description>
219 Script which will be executed after packages are installed.
220           </description>
221         <parameterList>
222           <parameter name="confdir">
223             <description>
224 The configuration directory of the vserver which is going to be set up.
225             </description>
226           </parameter>
227           <parameter name="vserver">
228             <description>
229 The pathname of the vserver binary.
230             </description>
231           </parameter>
232         </parameterList>
233       </program>
234       
235       <collection name="pkgs">
236         <description>
237 Contains files with packagenames.
238         </description>
239         <list name="list">
240           <description>
241 File which contains the name of packages. On top of file the special
242 keywords '--reinstall' and '--can-fail' are possible.
243           </description>
244         </list>
245       </collection>
246       
247       <collection name="pubkeys">
248         <description>
249 Directory with GPG pubkeys which are used to sign the packages of this
250 distribution.
251         </description>
252       </collection>
253       
254       <collection name="apt">
255         <description>
256 Default content of the /etc/apt/ directory.
257         </description>
258       </collection>
259       
260       <collection name="rpm">
261         <description>
262 Default content of the /etc/rpm directory.
263         </description>
264       </collection>
265       
266       <link name="rpmlib">
267         <description>
268 Directory which overrides /usr/lib/rpm.
269         </description>
270       </link>
271       <link name="execdir">
272         <description>
273 Directory with all executables and libraries which are required for
274 this distribution.
275         </description>
276       </link>
277     </collection>
278   </collection>
279   
280   <!-- Vserver configuration -->
281   <collection name="vserver-name" type="symbolic">
282     <description>
283 The configuration directory for the vserver vserver-name.
284     </description>
285     
286     <link name="vdir">
287       <description>
288 Path of the vserver root directory
289       </description>
290     </link>
291
292     <link name="run">
293       <description>
294 Points to a file which will contain the XID of the running vserver. When
295 the vserver is stopped, this can be a dangling symlink.
296       </description>
297     </link>
298
299     <list id="bcapabilities" name="bcapabilities">
300       <description>
301 [experimental; name is subject of possible change] Contains the system capabilities. See
302 <ulink url="http://savannah.nongnu.org/cgi-bin/viewcvs/util-vserver/util-vserver/lib/bcaps-v13.c?rev=HEAD">lib/bcaps-v13.c</ulink>
303 for possible values.
304       </description>
305     </list>
306     <list name="ccapabilities">
307       <description>
308 [experimental; name is subject of possible change] Contains the
309 context capabilities. See <ulink
310 url="http://savannah.nongnu.org/cgi-bin/viewcvs/util-vserver/util-vserver/lib/ccaps-v13.c?rev=HEAD">lib/ccaps-v13.c</ulink>
311 for possible values.
312       </description>
313     </list>
314
315     <boolean id="global-namespace" name="namespace">
316       <description>
317 Overrides the global <optionref ref="global-nonamespace">nonamespace</optionref> flag and enables
318 namespace usage for the current vserver.
319       </description>
320     </boolean>
321
322     <boolean name="nonamespace">
323       <description>
324 Disables namespace usage for the current vserver.
325
326 In this mode the /vservers directory must have the 'barrier'
327 attribute. Else, common chroot(2) exploits are possible.
328       </description>
329     </boolean>
330
331     <hash name="schedule">
332       <description>
333 [experimental; name is subject of possible change] Contains the
334 scheduler parameters, one per line.
335
336 The Hard CPU limit uses a mechanism called a Token Bucket.  the
337 concept is simple: you have a bucket of a certain size which is
338 filled with a specified amount R of tokens each interval T until the
339 maximum is reached (excess tokens are spilled). At each timer tick,
340 a running process consumes one token from the bucket, unless the
341 bucket is empty. If the bucket is empty the process is put in the
342 hold queue. When the bucket has been refilled to at least M tokens,
343 all on hold processes are rescheduled.
344       </description>
345       <keys>
346         <key id="fill_rate" name="fill-rate">
347           <description>
348 Amount of tokens append to the bucket each interval.
349             </description>
350         </key>
351         <key name="interval">
352           <description>
353 The intervall between refills of amount <optionref>fill_rate</optionref>. This
354 value is express in ticks.
355           </description>
356         </key>
357         <key name="tokens">
358           <description>
359 Initial bucket contents.
360           </description>
361         </key>
362         <key name="tokens-min">
363           <description>
364 The minimum amount of tokens required to unhold processes
365           </description>
366         </key>
367         <key name="tokens-max">
368           <description>
369 The bucket size.
370           </description>
371         </key>
372         <key name="priority-bias">
373           <description>
374 ???
375           </description>
376         </key>
377       </keys>
378     </hash>
379     <scalar name="name">
380       <description>
381 Contains the name of the vserver. When not given, the basename of the directory
382 will be assumed as this name.
383       </description>
384     </scalar>
385     <scalar name="nice">
386       <description>
387 The nice-level on which the vserver will be started.
388       </description>
389     </scalar>
390     <list name="capabilities">
391       <description>
392 Contains per line a capability. This file is used for the 2.4 kernel
393 only; for 2.6 use <optionref>bcapabilities</optionref>.
394       </description>
395     </list>
396     <scalar name="shell">
397       <description>
398 Contains the pathname of the shell which will be used by the "vserver
399 ... enter" command.
400       </description>
401     </scalar>
402     <list name="flags">
403       <description>
404 Contains per line a flag. See <ulink
405 url="http://savannah.nongnu.org/cgi-bin/viewcvs/util-vserver/util-vserver/lib/cflags-v13.c?rev=HEAD">lib/cflags-v13.c</ulink>
406 for possible values.
407       </description>
408       <elements>
409         <element name="fakeinit">
410           <description>
411 The new process will believe it is process number 1. Useful to run a
412 real /sbin/init in a vserver. Warning: this flag should not be used
413 unless you know what you are doing. Often, it is better to use the
414 'plain' initstyle.
415           </description>
416         </element>
417         <element name="lock">
418           <description>
419 The new process is trapped and can't use chcontext anymore.
420           </description>
421         </element>
422         <element name="sched">
423           <description>
424 The new process and its children will share a common
425           </description>
426         </element>
427         <element name="nproc">
428           <description>
429 Limit the number of process in the vserver according to
430 ulimit setting. Normally, ulimit is a per user thing.
431 With this flag, it becomes a per vserver thing.  
432           </description>
433         </element>
434         <element name="private">
435           <description>
436 No one can join this security context once created.
437           </description>
438         </element>
439         <element name="ulimit">
440           <description>
441 Apply the current ulimit to the whole context
442           </description>
443         </element>
444       </elements>
445     </list>
446     <scalar name="context">
447       <description>
448 Contains the context which shall be used for the vserver.
449         </description>
450     </scalar>
451     <data name="fstab">
452       <description>
453 The fstab file for the vserver. Entries in this file will be mounted
454 within the network context of the vserver; this means that mount will
455 be called as <command>chbind &lt;options&gt; mount ...</command>. Use
456 the 'fstab.local' file when you do not want this behavior, but in most
457 cases the 'fstab' file should be used.
458       </description>
459     </data>
460     <data name="fstab.local">
461       <description>
462 The fstab file for the vserver. In opposite to the normal 'fstab'
463 file, the mounting happens in the local network context. Currently
464 there is no way to mix entries of both files; 'fstab' will be always
465 processed before 'fstab.local'.
466       </description>
467     </data>
468     
469     <collection name="apps">
470       <collection name="init">
471         <data name="mtab">
472           <description>
473 The initial-mtab which will be used for the vserver.
474           </description>
475         </data>
476         
477         <scalar name="style">
478           <description>
479 Contains the init-style.
480           </description>
481           <restriction>
482             <enumeration value="sysv"/>
483             <enumeration value="plain"/>
484             <enumeration value="minit"/>
485             <enumeration value="gento"/>
486           </restriction>
487         </scalar>
488         
489         <scalar name="runlevel">
490           <description>The start runlevel.</description>
491         </scalar>
492         
493         <scalar name="runlevel.start">
494           <description>The start runlevel.</description>
495         </scalar>
496         
497         <scalar name="runlevel.stop">
498           <description>The stop runlevel.</description>
499         </scalar>
500         
501         <scalar name="killseq">
502           <description>
503 Contains the 'signal [wait signal]*' sequence which is used to stop
504 the vserver.
505           </description>
506         </scalar>
507         
508         <list name="cmd.start">
509           <description>
510 The command which is used to start the vserver. Each option must be on
511 a separate line.
512           </description>
513         </list>
514         
515         <list name="cmd.start-sync">
516           <description>
517 The command which is used to wait on the vserver after it has been
518 started. Each option must be on a separate line. This file will be
519 ignored when the <optionref>sync</optionref> flag does not exist and the
520 '--sync' option was not used.
521           </description>
522         </list>
523         
524         <list name="cmd.stop">
525           <description>
526 The command which is used to stop the vserver. Each option must be on
527 a separate line.
528           </description>
529         </list>
530         
531         <list name="cmd.stop-sync">
532           <description>
533 The command which is used to wait on the vserver after it has been
534 stopped. Each option must be on a separate line. This file will be
535 ignored when the <optionref>sync</optionref> flag does not exist and the
536 '--sync' option was not used.
537           </description>
538         </list>
539         
540         <list name="cmd.prepare">
541           <description>
542 The command which is used to setup the init-system (e.g. to set the
543 runlevel in the utmp-file). Each option must be on a separate line.
544           </description>
545         </list>
546         
547         <boolean id="sync" name="sync">
548           <description>
549 If this file is not present, all 'cmd.*-sync files will be ignored.
550             </description>
551         </boolean>
552         
553         <link name="tty">
554           <description>
555 A symlink to the TTY device where input/output will be redirected
556 from/to at startup via initscript.
557           </description>
558         </link>
559         
560         <scalar name="mark">
561           <description>
562 This file is used to mark group of vservers which shall be started/stopped
563 together by the initscript. Content is a simple string like 'default'.
564           </description>
565         </scalar>
566         
567         <list name="depends">
568           <description>
569 This file is used to configure vservers which must be running before
570 the current vserver can be started. At shutdown, the current vserver
571 will be stopped before its dependencies. Content of this file are
572 vserver ids (one name per line).
573           </description>
574         </list>
575       </collection>
576       
577       <collection name="vshelper">
578         <scalar name="sync-timeout">
579           <default>30</default>
580           <description>
581 The timeout in seconds which is used when synchronising vserver
582 startup/shutdown with the vshelper. When no set, 30 seconds will be
583 assumed.
584           </description>
585         </scalar>
586         
587         <scalar name="action">
588           <default>restart</default>
589           <description>
590 The action which is going to be executed when a vshelper event
591 occurs. The default value is 'restart', but there can be defined own
592 methods by placing scripts into the
593 <optionref>vshelper-methods</optionref> directories. These scripts are
594 fed with the same arguments as the <tool>vshelper</tool> script.
595           </description>
596         </scalar>
597         
598         <program name="event" type="symbolic">
599           <description>
600 When existing, these scripts will be executed *instead* of the default
601 handler defined in 'action'. Their name must match the event which caused
602 the execution of <tool>vshelper</tool>; e.g. 'restart' or 'poweroff'. See
603 the vs_reboot() function in the kernel for more details.
604           </description>
605           <parameterList>
606             <parameter name="xid">
607               <description>
608 The xid of the context calling the vshelper
609               </description>
610             </parameter>
611             <parameter name="event">
612               <description>
613 The reboot-event.
614               </description>
615             </parameter>
616           </parameterList>
617         </program>
618         
619         <boolean name="disabled">
620           <description>
621 When existing, the vshelper functionality will be disabled for this
622 vserver.
623           </description>
624         </boolean>
625
626         <boolean name="debug">
627           <description>
628 When existing, the vshelper execution will be traced for this vserver.
629           </description>
630         </boolean>
631         
632         <boolean name="warning-disabled">
633           <description>
634 When existing, sanity checks for the vshelper functionality will be
635 skipped.
636           </description>
637         </boolean>
638         
639       </collection>
640       
641       <collection id="vshelper-methods" name="vshelper-methods">
642         <program name="handler" type="symbolic">
643           <description>
644 See vshelper/action.
645           </description>
646         </program>
647       </collection>
648       
649       <collection name="vunify">
650         <description>
651 This directory contains configuration data required for vserver
652 unification.
653         </description>
654         
655         <list name="exclude">
656           <description>
657 <p>Static list of files which are excluded for unification. This list
658 supports an rsync-like syntax: when a file is prefixed by '+', it is a
659 candidate for unification; when there is no prefix or a '-' or a '~' it
660 will be excluded. Shell-wildcards are allowed for the filenames.</p>
661 <p>When used with <tool>vcopy</tool>, the '~' prefix prevents copying
662 of the file entirely (e.g. for keyfiles). With this tool, the file will
663 be copied instead of hardlinked when the '-' prefix is used.</p>
664           </description>
665         </list>
666         
667         <link name="refserver.X" type="symbolic">
668           <description>
669 These are symlinks to the configuration directory
670 (e.g. CONFDIR/vservers/&lt;id&gt;) of a refserver. There may be
671 multiple such symlinks but they must be prefixed by 'refserver.' and
672 will be processed in alphanumerical order.
673           </description>
674         </link>
675
676         <collection name="hash" since="0.30.205">
677           <description>
678 A directory which will be used as the storage place for the
679 <tool>vhashify</tool> command.
680           </description>
681           <link name="id" type="symbolic">
682             <description>
683 Points to a directory within the filesystems which are used for the
684 vservers. There must be not more than one of such a directory per
685 filesystem.
686             </description>
687           </link>
688
689           <scalar name="method"  since="0.30.299">
690             <default>SHA1</default>
691             <description>The used hash method.</description>
692           </scalar>
693         </collection>
694
695         <boolean name="pkgmgmt-ignore" default="off" since="0.30.205">
696           <description>
697 When existing, information from packagemanagement will not be used to
698 create dynamic exclude-lists.
699           </description>
700         </boolean>
701
702         <boolean name="pgkmgmt-force" default="off" since="0.30.205">
703           <description>
704 When existing, information from packagemanagement will be used to
705 create dynamic exclude-lists. This option requires that (a known)
706 packagemanagement is configured for the vserver; else the requested
707 operation will fail. Most tools assume 'on' as the default value.
708           </description>
709         </boolean>
710         
711       </collection>
712     </collection>
713     
714     <collection name="scripts">
715       <description>
716 A directory for scripts. By default, when one of these scripts will be
717 executed, the execution of defaultscripts (within .../.defaults/scripts)
718 will be skipped. To execute them nevertheless, the $DONT_SKIP_DEFAULTS
719 environment variable must be set by one of the in-shellcontext scripts
720 (the non-executable ones).
721       </description>
722       
723       <program name="prepre-start">
724         <description>
725 The scriptlet which will be executed before the network-interfaces are
726 enabled and the directories are mounted."
727         </description>
728         <parameterList>
729           <parameter name="vserver-dir">
730             <description>
731 The configuration directory of the current vserver.
732             </description>
733           </parameter>
734           <parameter name="vserver-name">
735             <description>
736 The name of the current vserver.
737             </description>
738           </parameter>
739           <parameter name="action">
740             <description>
741 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
742             </description>
743           </parameter>
744         </parameterList>
745       </program>
746       <collection name="prepre-start.d">
747         <description>
748 Repository of prepre-start like scripts
749         </description>                                                                                                                 
750         <program name="script" type="symbolic">
751           <description>See prepre-start.</description>
752           <parameterList>
753             <parameter name="vserver-dir">
754               <description>
755 The configuration directory of the current vserver.
756               </description>
757             </parameter>
758             <parameter name="vserver-name">
759               <description>
760 The name of the current vserver.
761               </description>
762             </parameter>
763             <parameter name="action">
764               <description>
765 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
766               </description>
767             </parameter>
768           </parameterList>
769         </program>
770       </collection>
771       
772       <program name="pre-start">
773         <description>
774 The scriptlet which will be executed after network-interfaces were
775 enabled and the directories mounted, but before the vserver itself has
776 been started.
777         </description>
778         <parameterList>
779           <parameter name="vserver-dir">
780             <description>
781 The configuration directory of the current vserver.
782             </description>
783           </parameter>
784           <parameter name="vserver-name">
785             <description>
786 The name of the current vserver.
787             </description>
788           </parameter>
789           <parameter name="action">
790             <description>
791 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
792             </description>
793           </parameter>
794         </parameterList>
795       </program>
796       <collection name="pre-start.d">
797         <description>
798 Repository of pre-start like scripts
799         </description>                                                                                                                 
800         <program name="script" type="symbolic">
801           <description>See pre-start.</description>
802           <parameterList>
803             <parameter name="vserver-dir">
804               <description>
805 The configuration directory of the current vserver.
806               </description>
807             </parameter>
808             <parameter name="vserver-name">
809               <description>The name of the current vserver.</description>
810             </parameter>
811             <parameter name="action">
812               <description>
813 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
814               </description>
815             </parameter>
816           </parameterList>
817         </program>
818       </collection>
819       
820
821       <program name="post-start">
822         <description>
823 The scriptlet which will be executed after the vserver has been started.
824         </description>
825         <parameterList>
826           <parameter name="vserver-dir">
827             <description>The configuration directory of the current vserver.</description>
828           </parameter>
829           <parameter name="vserver-name">
830             <description>The name of the current vserver.</description>
831           </parameter>
832           <parameter name="action">
833             <description>
834 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
835             </description>
836           </parameter>
837         </parameterList>
838       </program>
839       <collection name="post-start.d">
840         <description>Repository of post-start like scripts</description>
841         <program name="script" type="symbolic">
842           <description>See post-start.</description>
843           <parameterList>
844             <parameter name="vserver-dir">
845               <description>The configuration directory of the current vserver.</description>
846             </parameter>
847             <parameter name="vserver-name">
848               <description>The name of the current vserver.</description>
849             </parameter>
850             <parameter name="action">
851               <description>
852 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
853               </description>
854             </parameter>
855           </parameterList>
856         </program>
857       </collection>
858
859
860       <program name="pre-stop">
861         <description>
862 The scriptlet which will be executed before the vserver will be stopped.
863         </description>
864         <parameterList>
865           <parameter name="vserver-dir">
866             <description>The configuration directory of the current vserver.</description>
867           </parameter>
868           <parameter name="vserver-name">
869             <description>The name of the current vserver.</description>
870           </parameter>
871           <parameter name="action">
872             <description>
873 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
874             </description>
875           </parameter>
876         </parameterList>
877       </program>
878       <collection name="pre-stop.d">
879         <description>
880 Repository of pre-stop like scripts
881         </description>                                                                                                                 
882         <program name="script" type="symbolic">
883           <description>See pre-stop.</description>
884           <parameterList>
885             <parameter name="vserver-dir">
886               <description>The configuration directory of the current vserver.</description>
887             </parameter>
888             <parameter name="vserver-name">
889               <description>The name of the current vserver.</description>
890             </parameter>
891             <parameter name="action">
892               <description>
893 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
894               </description>
895             </parameter>
896           </parameterList>
897         </program>
898       </collection>
899
900       <program name="post-stop">
901         <description>
902 The scriptlet which will be executed after the vserver has been
903 stopped, but before the directories will be umounted and the the
904 interfaces disabled.
905         </description>
906         <parameterList>
907           <parameter name="vserver-dir">
908             <description>The configuration directory of the current vserver.</description>
909           </parameter>
910           <parameter name="vserver-name">
911             <description>The name of the current vserver.</description>
912           </parameter>
913           <parameter name="action">
914             <description>
915 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
916             </description>
917           </parameter>
918         </parameterList>
919       </program>
920       <collection name="post-stop.d">
921         <description>Repository of post-stop like scripts</description>
922         <program name="script" type="symbolic">
923           <description>See post-stop.</description>
924           <parameterList>
925             <parameter name="vserver-dir">
926               <description>The configuration directory of the current vserver.</description>
927             </parameter>
928             <parameter name="vserver-name">
929               <description>The name of the current vserver.</description>
930             </parameter>
931             <parameter name="action">
932               <description>
933 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
934               </description>
935             </parameter>
936           </parameterList>
937         </program>
938       </collection>
939       
940       <program name="postpost-stop">
941         <description>
942 The scriptlet which will be executed after the vserver has been stopped
943 completely.
944         </description>
945         <parameterList>
946           <parameter name="vserver-dir">
947             <description>The configuration directory of the current vserver.</description>
948           </parameter>
949           <parameter name="vserver-name">
950             <description>The name of the current vserver.</description>
951           </parameter>
952           <parameter name="action">
953             <description>
954 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
955             </description>
956           </parameter>
957         </parameterList>
958       </program>
959       <collection name="postpost-stop.d">
960         <description>Repository of postpost-stop like scripts</description>
961         <program name="script" type="symbolic">
962           <description>See postpost-stop.</description>
963           <parameterList>
964             <parameter name="vserver-dir">
965               <description>The configuration directory of the current vserver.</description>
966             </parameter>
967             <parameter name="vserver-name">
968               <description>The name of the current vserver.</description>
969             </parameter>
970             <parameter name="action">
971               <description>
972 The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
973               </description>
974             </parameter>
975           </parameterList>
976         </program>
977       </collection>
978     </collection>
979     
980     <collection name="interfaces">
981       <scalar name="bcast">
982         <description>The default broadcast address.</description>
983       </scalar>
984       <scalar name="dev">
985         <description>The default network device.</description>
986       </scalar>
987       <scalar name="prefix">
988         <description>The default network prefix-length.</description>
989       </scalar>
990       <scalar name="mask">
991         <description>The default network mask.</description>
992       </scalar>
993       <scalar name="scope">
994         <description>The default scope of the network interfaces.</description>
995       </scalar>
996       
997       <collection name="iface" type="symbolic">
998         <description>
999 'iface' is an arbitrary name for the interface; the value itself is
1000 not important but may be interesting regarding interface-creation and
1001 usage with <tool>chbind</tool>. Both happens in alphabetical order and
1002 numbers like '00' are good names for these directories.
1003         </description>
1004         
1005         <boolean name="disabled">
1006           <description>When this file exists, this interface will be ignored.</description>
1007         </boolean>
1008         
1009         <scalar name="ip">
1010           <description>The ip which will be assigned to this interface.</description>
1011         </scalar>
1012         <scalar name="bcast">
1013           <description>The broadcast address.</description>
1014         </scalar>
1015         <scalar name="dev">
1016           <description>The network device.</description>
1017         </scalar>
1018         <scalar name="prefix">
1019           <description>The network prefix-length.</description>
1020         </scalar>
1021         <scalar name="mask">
1022           <description>The network mask.</description>
1023         </scalar>
1024         <scalar name="scope">
1025           <description>The scope of the network interface.</description>
1026         </scalar>
1027         <scalar name="name">
1028           <description>
1029 When this file exists, the interface will be named with the text in
1030 this file. Without such an entry, the IP will not be shown by
1031 <tool>ifconfig</tool> but by <command>ip addr ls</command> only.  Such
1032 a labeled interface is known as an "alias" also (e.g. 'eth0:foo').
1033           </description>
1034         </scalar>
1035         <boolean name="nodev">
1036           <description>
1037 When this file exists, the interface will be assumed to exist
1038 already. This can be used to assign primary interfaces which are
1039 created by the host or another vserver.
1040           </description>
1041         </boolean>
1042       </collection>
1043     </collection>
1044     
1045     <collection name="ulimits">
1046       <description>
1047 A directory with ulimits. Possible resources are cpu, data, fsize,
1048 locks, memlock, nofile, nproc, rss and/or stack. This configuration
1049 will be honored for kernel 2.4 only.
1050       </description>                                                                                                                 
1051       <scalar name="resource" type="symbolic">
1052         <description>
1053 A file which contains the hard- and soft-limit of the given resource
1054 in the first line. The special keyword 'inf' is recognized.
1055         </description>
1056       </scalar>                                                                            
1057       <scalar name="resource.hard" type="symbolic">
1058         <description>
1059 A file which contains the hard- of the given resource in the first
1060 line. The special keyword 'inf' is recognized.
1061         </description>
1062       </scalar>                                                                                             
1063       <scalar name="resource.soft" type="symbolic">
1064         <description>
1065 A file which contains the soft- of the given resource in the first
1066 line. The special keyword 'inf' is recognized.
1067         </description>
1068       </scalar>
1069     </collection>
1070     
1071     <collection name="rlimits">
1072       <description>
1073 A directory with resource limits. Possible resources are cpu, fsize,
1074 data, stack, core, rss, nproc, nofile, memlock, as and locks. This
1075 configuration will be honored for kernel 2.6 only.
1076       </description>                                                                                                                 
1077       <scalar name="resource" type="symbolic">
1078         <description>
1079 A file which contains the hard- and soft-limit of the given resource
1080 in the first line. The special keyword 'inf' is recognized.
1081         </description>
1082       </scalar>                                                                            
1083       <scalar name="resource.hard" type="symbolic">
1084         <description>
1085 A file which contains the hard- of the given resource in the first
1086 line. The special keyword 'inf' is recognized.
1087         </description>
1088       </scalar>                                                                                             
1089       <scalar name="resource.soft" type="symbolic">
1090         <description>
1091 A file which contains the soft- of the given resource in the first
1092 line. The special keyword 'inf' is recognized.
1093         </description>
1094       </scalar>
1095       <scalar name="resource.min" type="symbolic">
1096         <description>
1097 A file which contains the guaranted minimum of the given resource in
1098 the first line. The special keyword 'inf' is recognized.
1099         </description>
1100       </scalar>
1101     </collection>
1102     
1103     <collection name="uts">
1104       <scalar name="context">
1105         <description>
1106 The context-name of the vserver. This file is listed for completeness
1107 only; the 'context' name is used and set internally by the util-vserver
1108 tools and can *not* be modified.
1109         </description>
1110       </scalar>
1111       <scalar name="sysname">
1112         <description>The sysname of the vserver</description>
1113       </scalar>
1114       <scalar name="nodename">
1115         <description>The node-/hostname of the vserver</description>
1116       </scalar>
1117       <scalar name="release">
1118         <description>The OS-release of the vserver</description>
1119       </scalar>
1120       <scalar name="version">
1121         <description>The OS-version of the vserver</description>
1122       </scalar>
1123       <scalar name="machine">
1124         <description>The machine-type of the vserver</description>
1125       </scalar>
1126       <scalar name="domainname">
1127         <description>The NIS domainname of the vserver</description>
1128       </scalar>
1129     </collection>
1130   </collection>
1131   </database>