2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
4 Copyright 2010 Sun Microsystems, Inc. All rights reserved.
5 Use is subject to license terms.
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]
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
32 <service_bundle type='manifest' name='SUNWcsr:network-location'>
35 network/location is used as a medium to refresh and restart SMF
36 services dependent on network/location whenever nwamd(1M) changes
37 locations. nwamd(1M) updates the different configuration files
38 according to the location being (de)activated and refreshes
39 network/location. This causes the services dependent on network/location
40 to restart and read in the updated configuration files.
42 The following services are dependent on network/location with a
43 "restart_on refresh" dependency:
45 svc:/network/dns/client:default
46 svc:/network/nis/client:default
47 svc:/network/ldap/client:default
48 svc:/system/name-service-cache:default
49 svc:/network/nfs/mapid:default
51 The following dependents will be refreshed (rather than restarted) and,
52 thus, have a "restart_on none" dependency:
54 svc:/network/ipfilter:default
55 svc:/network/ipsec/ike:default
56 svc:/network/ipsec/policy:default
58 The name of the location to be activated is set in the location/selected
59 property by nwamd. If this property group/property does not exist, the
60 NoNet location will be activated as a fallback.
65 name='network/location'
69 <instance name='default' enabled='false'>
72 nwamd(1M) refreshes network/location when a new location is
73 activated, thus the "restart_on none" dependency.
76 name='network-physical'
77 grouping='require_all'
80 <service_fmri value='svc:/network/physical' />
84 name='location_netcfg'
85 grouping='require_all'
88 <service_fmri value='svc:/network/netcfg:default' />
93 grouping='require_all'
96 <service_fmri value='svc:/system/filesystem/usr' />
100 This dependency on system/manifest-import is just for the
101 case of the boot after upgrade. We don't want
102 network/location starting up until network/netcfg has been
103 imported by manifest-import and enabled. On top of that,
104 we also want the new manifest for network/ipfilter to be
105 imported before network/location has started.
108 name='manifest-import'
109 grouping='require_all'
112 <service_fmri value='svc:/system/manifest-import:default' />
115 <!-- The following services are dependent on network/location. -->
118 name='location_dns-client'
119 grouping='optional_all'
120 restart_on='refresh'>
121 <service_fmri value='svc:/network/dns/client' />
125 name='location_nis-client'
126 grouping='optional_all'
127 restart_on='refresh'>
128 <service_fmri value='svc:/network/nis/client' />
132 name='location_ldap-client'
133 grouping='optional_all'
134 restart_on='refresh'>
135 <service_fmri value='svc:/network/ldap/client' />
139 name='location_name-service-cache'
140 grouping='optional_all'
141 restart_on='refresh'>
142 <service_fmri value='svc:/system/name-service-cache' />
146 name='location_nfs-mapid'
147 grouping='optional_all'
148 restart_on='refresh'>
149 <service_fmri value='svc:/network/nfs/mapid' />
153 name='location_identity-domain'
154 grouping='optional_all'
155 restart_on='refresh'>
156 <service_fmri value='svc:/system/identity:domain' />
160 The following three dependents will be refreshed by
161 /lib/svc/method/net-loc, rather than restarted,
162 when network/location is refreshed.
166 name='location_ipfilter'
167 grouping='optional_all'
169 <service_fmri value='svc:/network/ipfilter' />
173 name='location_ipsec-ike'
174 grouping='optional_all'
176 <service_fmri value='svc:/network/ipsec/ike' />
180 name='location_ipsec-policy'
181 grouping='optional_all'
183 <service_fmri value='svc:/network/ipsec/policy' />
189 exec='/lib/svc/method/net-loc start'
190 timeout_seconds='60' >
192 <method_credential user='netadm' group='netadm'
193 supp_groups='netadm' privileges='zone' />
200 exec='/lib/svc/method/net-loc refresh'
201 timeout_seconds='60' >
203 <method_credential user='netadm' group='netadm'
204 supp_groups='netadm' privileges='zone' />
212 timeout_seconds='60' >
214 <method_credential user='netadm' group='netadm'
215 supp_groups='netadm' privileges='zone' />
219 <property_group name='general' type='framework'>
220 <propval name='action_authorization' type='astring'
221 value='solaris.smf.manage.location' />
224 <property_group name='startd' type='framework'>
225 <propval name='duration' type='astring' value='transient' />
230 <loctext xml:lang='C'>
231 network interface configuration
235 <manpage title='nwamd' section='1M'
236 manpath='/usr/share/man' />
242 <stability value='Unstable' />