summaryrefslogtreecommitdiffstats
path: root/schemas
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2013-06-02 08:49:18 -0500
committerSol Jerome <sol.jerome@gmail.com>2013-06-02 08:49:18 -0500
commit6e8031680422a238fd8ea9fbc5ea04f2fd1e2a57 (patch)
tree88fd244823f8f5c8779c8eeaa61d31ee7e0467c1 /schemas
parenteadc444fd49644c02241ad18acedede62747010f (diff)
downloadbcfg2-6e8031680422a238fd8ea9fbc5ea04f2fd1e2a57.tar.gz
bcfg2-6e8031680422a238fd8ea9fbc5ea04f2fd1e2a57.tar.bz2
bcfg2-6e8031680422a238fd8ea9fbc5ea04f2fd1e2a57.zip
Services: Add new bootstatus attribute
This new attribute allows the specification of a boot-time status separately from the current 'status' attribute. This allows for more fine-grained control over e.g. services that are really just boot scripts. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'schemas')
-rw-r--r--schemas/servicetype.xsd15
-rw-r--r--schemas/types.xsd7
2 files changed, 19 insertions, 3 deletions
diff --git a/schemas/servicetype.xsd b/schemas/servicetype.xsd
index 4d5ac7c31..4c7e1b803 100644
--- a/schemas/servicetype.xsd
+++ b/schemas/servicetype.xsd
@@ -34,12 +34,21 @@
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
+ <xsd:attribute name="bootstatus" type="BootStatusEnum" default="off">
+ <xsd:annotation>
+ <xsd:documentation>
+ Whether the service should start at boot. The default value
+ corresponds to the value of the status attribute.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
<xsd:attribute name="status" type="StatusEnum" default="off">
<xsd:annotation>
<xsd:documentation>
- Whether the service should start at boot. If this is set to
- "ignore", then the boot-time status of the service will not
- be checked.
+ Whether the service should be on or off when the bcfg2 client
+ is run. This attribute may have different behavior depending
+ on the characteristics of the client tool. If set to "ignore",
+ then the status of the service will not be checked.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
diff --git a/schemas/types.xsd b/schemas/types.xsd
index 05bf674ad..5f6328a62 100644
--- a/schemas/types.xsd
+++ b/schemas/types.xsd
@@ -53,6 +53,13 @@
</xsd:restriction>
</xsd:simpleType>
+ <xsd:simpleType name='BootStatusEnum'>
+ <xsd:restriction base='xsd:string'>
+ <xsd:enumeration value='on'/>
+ <xsd:enumeration value='off'/>
+ </xsd:restriction>
+ </xsd:simpleType>
+
<xsd:simpleType name='StatusEnum'>
<xsd:restriction base='xsd:string'>
<xsd:enumeration value='on'/>