xref: /titanic_52/usr/src/cmd/cmd-inet/usr.lib/mdnsd/multicast.xml (revision d14abf155341d55053c76eeec58b787a456b753b)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 CDDL HEADER START
8
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License (the "License").
11 You may not use this file except in compliance with the License.
12
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 or http://www.opensolaris.org/os/licensing.
15 See the License for the specific language governing permissions
16 and limitations under the License.
17
18 When distributing Covered Code, include this CDDL HEADER in each
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 If applicable, add the following below this CDDL HEADER, with the
21 fields enclosed by brackets "[]" replaced with your own identifying
22 information: Portions Copyright [yyyy] [name of copyright owner]
23
24 CDDL HEADER END
25
26    NOTE:  This service manifest is not editable; its contents will
27    be overwritten by package or patch operations, including
28    operating system upgrade.  Make customizations in a different
29    file.
30
31-->
32
33<service_bundle type='manifest' name='SUNWdsdr:multicast'>
34
35<service
36	name='network/dns/multicast'
37	type='service'
38	version='1'>
39
40	<dependency
41		name='loopback'
42		grouping='require_all'
43		restart_on='none'
44		type='service'>
45		<service_fmri value='svc:/network/loopback' />
46	</dependency>
47
48	<dependency name='net-physical'
49		grouping='require_all'
50		restart_on='none'
51		type='service'>
52		<service_fmri value='svc:/network/physical' />
53	</dependency>
54
55	<dependency
56	    name='identity'
57	    grouping='optional_all'
58	    restart_on='refresh'
59	    type='service'>
60		<service_fmri value='svc:/system/identity:node' />
61	</dependency>
62
63	<dependency
64	    name='system-log'
65	    grouping='optional_all'
66	    restart_on='none'
67	    type='service'>
68		<service_fmri value='svc:/system/system-log' />
69	</dependency>
70
71	<instance name='default' enabled='false' >
72
73		<exec_method
74		    type='method'
75		    name='start'
76		    exec='/usr/lib/inet/mdnsd'
77		    timeout_seconds='60'>
78		    <method_context>
79			    <method_credential user='root' group='root' />
80		    </method_context>
81		</exec_method>
82
83		<exec_method
84		    type='method'
85		    name='stop'
86		    exec=':kill'
87		    timeout_seconds='60' />
88
89		<!-- to start stop mdns service -->
90		<property_group name='general' type='framework'>
91			<propval name='action_authorization' type='astring'
92				value='solaris.smf.manage.mdns' />
93			<propval name='value_authorization' type='astring'
94				value='solaris.smf.manage.mdns' />
95		</property_group>
96
97		<!-- Properties in this group are used by nss_mdns module -->
98		<property_group name='nss_mdns_config' type='application'>
99			<stability value='Unstable' />
100
101			<!-- mDNS domain search property list. Users must
102			     explicitly add mDNS search option values and
103			     none are provided here by default.
104			     <property name='search' type='astring'>
105				<astring_list>
106					<value_node value='local'/>
107				</astring_list>
108			     </property>
109			-->
110			<property name='domain' type='astring'>
111				<astring_list>
112					<value_node value='local'/>
113					<value_node value='254.169.in-addr.arpa'/>
114					<value_node value='8.e.f.ip6.arpa'/>
115					<value_node value='9.e.f.ip6.arpa'/>
116					<value_node value='a.e.f.ip6.arpa'/>
117					<value_node value='b.e.f.ip6.arpa'/>
118				</astring_list>
119			</property>
120			<propval name='value_authorization' type='astring'
121				value='solaris.smf.value.mdns' />
122		</property_group>
123
124		<property_group name='firewall_context' type='com.sun,fw_definition'>
125			<propval name='name' type='astring' value='mdns' />
126		</property_group>
127
128		<property_group name='firewall_config' type='com.sun,fw_configuration'>
129			<propval name='policy' type='astring' value='use_global' />
130			<propval name='apply_to' type='astring' value='' />
131			<propval name='exceptions' type='astring' value='' />
132			<propval name='value_authorization' type='astring'
133			    value='solaris.smf.value.firewall.config' />
134		</property_group>
135
136	</instance>
137
138        <stability value='Unstable' />
139
140	<template>
141
142	<common_name>
143		<loctext xml:lang='C'>DNS Service Discovery and Multicast DNS
144		</loctext>
145	</common_name>
146	<documentation>
147		<manpage title='mdnsd' section='1M' />
148		<doc_link name='Service Discovery OpenSolaris Project Page'
149		uri="http://opensolaris.org/os/project/nwam/service-discovery/"/>
150	</documentation>
151
152	</template>
153</service>
154
155</service_bundle>
156