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