xref: /titanic_41/usr/src/lib/libresolv2/install.xml (revision 6a634c9dca3093f3922e4b7ab826d7bdf17bf78e)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
5
6 CDDL HEADER START
7
8 The contents of this file are subject to the terms of the
9 Common Development and Distribution License (the "License").
10 You may not use this file except in compliance with the License.
11
12 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 or http://www.opensolaris.org/os/licensing.
14 See the License for the specific language governing permissions
15 and limitations under the License.
16
17 When distributing Covered Code, include this CDDL HEADER in each
18 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 If applicable, add the following below this CDDL HEADER, with the
20 fields enclosed by brackets "[]" replaced with your own identifying
21 information: Portions Copyright [yyyy] [name of copyright owner]
22
23 CDDL HEADER END
24
25	NOTE:  This service manifest is not editable; its contents will
26	be overwritten by package or patch operations, including
27	operating system upgrade.  Make customizations in a different
28	file.
29-->
30
31<service_bundle type='manifest' name='SUNWcsr:dns-install'>
32
33<service
34	name='network/dns/install'
35	type='service'
36	version='1'>
37
38	<create_default_instance enabled='false' />
39
40	<single_instance />
41
42	<dependency
43		name='filesystem'
44		grouping='require_all'
45		restart_on='none'
46		type='service'>
47		<service_fmri value='svc:/system/filesystem/root' />
48		<service_fmri value='svc:/system/filesystem/usr' />
49		<service_fmri value='svc:/system/filesystem/minimal' />
50	</dependency>
51
52	<dependent name='network-service'
53		grouping='optional_all'
54		restart_on='none'>
55		<service_fmri value='svc:/network/service' />
56	</dependent>
57
58	<dependent name='dns-client'
59		grouping='optional_all'
60		restart_on='none'>
61		<service_fmri value='svc:/network/dns/client' />
62	</dependent>
63
64	<exec_method
65		type='method'
66		name='start'
67		exec='/lib/svc/method/dns-install'
68		timeout_seconds='30' />
69
70	<exec_method
71		type='method'
72		name='stop'
73		exec=':true'
74		timeout_seconds='0' />
75
76	<property_group name='startd' type='framework'>
77		<propval name='duration' type='astring' value='transient' />
78	</property_group>
79
80	<property_group name='install_props' type='application'>
81		<property name='nameserver' type='net_address'>
82			<net_address_list>
83				<value_node value='0.0.0.0' />
84			</net_address_list>
85		</property>
86		<propval name='domain' type='astring' value='' />
87		<property name='search' type='astring'>
88			<astring_list>
89				<value_node value='' />
90			</astring_list>
91		</property>
92	</property_group>
93
94	<stability value='Unstable' />
95
96	<template>
97		<common_name>
98			<loctext xml:lang='C'>
99				DNS resolver install
100			</loctext>
101		</common_name>
102		<documentation>
103			<manpage title='resolver' section='3RESOLV'
104				manpath='/usr/share/man' />
105		</documentation>
106		<pg_pattern name='install_props' type='application'
107		    target='this' required='false'>
108			<description> <loctext xml:lang='C'>
109			    Install derived configuration data used to configure an initial DNS client.
110			 </loctext> </description>
111			<prop_pattern name='nameserver' type='net_address'
112			    required='true'>
113				<description> <loctext xml:lang='C'>
114				    The value used to construct the "nameserver" directive in resolv.conf(4).
115				</loctext> </description>
116				<cardinality min='1' max='3'/>
117			</prop_pattern>
118			<prop_pattern name='domain' type='astring'
119			    required='false'>
120				<description> <loctext xml:lang='C'>
121				    The value used to construct the "domain" directive in resolv.conf(4).
122				</loctext> </description>
123				<cardinality min='1' max='1'/>
124			</prop_pattern>
125			<prop_pattern name='search' type='astring'
126			    required='false'>
127				<description> <loctext xml:lang='C'>
128				    The value used to construct the "search" directive in resolv.conf(4).
129				</loctext> </description>
130				<cardinality min='1' max='6'/>
131			</prop_pattern>
132		</pg_pattern>
133	</template>
134
135</service>
136
137</service_bundle>
138