summaryrefslogtreecommitdiff
path: root/doc/xsd/sysv.xsd
blob: 8193d68e5de2af881c8f6b2b757698f22683172c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0"?>
<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
  
  <annotation>
    <documentation>
	 
	 SystemV init script configurator XML format for the ximian-setup-tool backends.
	 
	 Copyright (C) 2001 Ximian, Inc.
	 
	 Authors: Arturo Espinosa [arturo@ximian.com]
	 
	 This is intended mainly as a means for documentation, not validation,
	 but I hope to be able to validate the XML we get and return to
	 backends with these files some day.
    </documentation>
  </annotation>
  
  <!-- Include file with useful types and stuff -->
  <include schemaLocation="gst.xsd"/>

  <element type="sysvType" name="sysv"/>

  <complexType name="sysType">
    <sequence>
      <element type="runlevelType" name="runlevel" minOccurs="0" maxOccurs="unbounded"/>
      <element type="servicesType" name="servicrs"/>
    </sequence>
  </complexType>

  <complexType name="runlevelType">
    <sequence>
      <element type="string"      name="level"/>
      <element type="serviceType" name="service" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
  </complexType>

  <complexType name="serviceType">
    <sequence>
      <element type="actionType"  name="action"/>
      <element type="string"      name="name"/>
      <element type="unsignedInt" name="priority"/>
    </sequence>
  </complexType>

  <simpleType name="actionType">
    <restriction base="string">
      <enumeration value="start"/>
      <enumeration value="kill"/>
    </restriction>
  </simpleType>

  <complexType name="services">
    <sequence>
      <element type="string" name="service" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
  </complexType>
  
</schema>