xref: /titanic_44/usr/src/cmd/svc/milestone/network-physical.xml (revision 726fad2a65f16c200a03969c29cb5c86c2d427db)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2010 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<service_bundle type='manifest' name='SUNWcsr:network-physical'>
33
34<service
35	name='network/physical'
36	type='service'
37	version='1'>
38
39	<!-- ifconfig needs loopback for IPC with dhcpagent -->
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	<instance name='default' enabled='true'>
49
50	<!--
51		physical:default and physical:nwam are mutually exclusive.
52		Use a one-way dependency for now since two-way exclude_all
53		does not work; enforcement of single_instance in the future
54		will fix this.
55	-->
56	<dependency
57		name='physical_nwam'
58		grouping='exclude_all'
59		restart_on='none'
60		type='service'>
61		<service_fmri value='svc:/network/physical:nwam' />
62	</dependency>
63
64	<exec_method
65		type='method'
66		name='start'
67		exec='/lib/svc/method/net-physical'
68		timeout_seconds='600' />
69
70	<exec_method
71		type='method'
72		name='stop'
73		exec=':true'
74		timeout_seconds='3' />
75
76	<property_group name='startd' type='framework'>
77		<propval name='duration' type='astring' value='transient' />
78	</property_group>
79
80	<template>
81		<common_name>
82			<loctext xml:lang='C'>
83				physical network interfaces
84			</loctext>
85		</common_name>
86		<documentation>
87			<manpage title='ifconfig' section='1M'
88				manpath='/usr/share/man' />
89		</documentation>
90	</template>
91
92	</instance>
93
94	<instance name='nwam' enabled='false'>
95
96	<exec_method
97		type='method'
98		name='start'
99		exec='/lib/svc/method/net-nwam start'
100		timeout_seconds='120' >
101		<method_context>
102			<method_credential user='root' group='root'
103				supp_groups='netadm' privileges='zone' />
104		</method_context>
105	</exec_method>
106
107	<exec_method
108		type='method'
109		name='stop'
110		exec='/lib/svc/method/net-nwam stop'
111		timeout_seconds='60' >
112		<method_context>
113			<method_credential user='root' group='root'
114				supp_groups='netadm' privileges='zone' />
115		</method_context>
116	</exec_method>
117
118	<exec_method
119		type='method'
120		name='refresh'
121		exec='/lib/svc/method/net-nwam refresh'
122		timeout_seconds='60' >
123		<method_context>
124			<method_credential user='root' group='root'
125				supp_groups='netadm' privileges='zone' />
126		</method_context>
127	</exec_method>
128
129	<property_group name='general' type='framework'>
130		<!-- to start/stop NWAM services -->
131		<propval name='action_authorization' type='astring'
132			value='solaris.smf.manage.nwam' />
133		<propval name='value_authorization' type='astring'
134			value='solaris.smf.manage.nwam' />
135	</property_group>
136
137	<property_group name='nwamd' type='application'>
138		<stability value='Unstable' />
139		<propval name='debug' type='boolean' value='false' />
140		<propval name='autoconf' type='boolean' value='false' />
141		<propval name='ncu_wait_time' type='count' value='60' />
142		<propval name='condition_check_interval' type='count'
143			value='120' />
144		<propval name='scan_interval' type='count' value='120' />
145		<propval name='scan_level' type='astring' value='weak' />
146		<propval name='strict_bssid' type='boolean' value='false' />
147		<propval name='active_ncp' type='astring' value='Automatic' />
148		<propval name='value_authorization' type='astring'
149			value='solaris.smf.value.nwam' />
150	</property_group>
151
152	<template>
153		<common_name>
154			<loctext xml:lang='C'>
155				physical network interface autoconfiguration
156			</loctext>
157		</common_name>
158		<documentation>
159			<manpage title='nwamd' section='1M'
160				manpath='/usr/share/man' />
161			<doc_link
162			    name='Network Auto-Magic OpenSolaris Project Page'
163				uri='http://hub.opensolaris.org/bin/view/Project+nwam/'
164				/>
165		</documentation>
166	</template>
167
168	</instance>
169
170	<stability value='Unstable' />
171
172</service>
173
174</service_bundle>
175