8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / cmd / svc / milestone / network-physical.xml
blobd43bed06ecd98798d1ef7d7cac4c81a0174b6921
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.
7  CDDL HEADER START
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.
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.
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]
24  CDDL HEADER END
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 -->
32 <service_bundle type='manifest' name='SUNWcsr:network-physical'>
34 <service
35         name='network/physical'
36         type='service'
37         version='1'>
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>
48         <instance name='default' enabled='true'>
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>
64         <exec_method
65                 type='method'
66                 name='start'
67                 exec='/lib/svc/method/net-physical'
68                 timeout_seconds='600' />
70         <exec_method
71                 type='method'
72                 name='stop'
73                 exec=':true'
74                 timeout_seconds='3' />
76         <property_group name='startd' type='framework'>
77                 <propval name='duration' type='astring' value='transient' />
78         </property_group>
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>
92         </instance>
94         <instance name='nwam' enabled='false'>
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>
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>
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>
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>
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>
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>
168         </instance>
170         <stability value='Unstable' />
172 </service>
174 </service_bundle>