<?xml version="1.0"?>
<!--
Copyright 2010 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
CDDL HEADER START
The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
See the License for the specific language governing permissions
and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]
CDDL HEADER END
NOTE: This service manifest is not editable; its contents will
be overwritten by package or patch operations, including
operating system upgrade. Make customizations in a different
file.
-->
<service_bundle type='manifest' name='SUNWcsr:network-location'>
<!--
locations. nwamd(1M) updates the different configuration files
according to the location being (de)activated and refreshes
to restart and read in the updated configuration files.
"restart_on refresh" dependency:
svc:/system/name-service-cache:default
The following dependents will be refreshed (rather than restarted) and,
thus, have a "restart_on none" dependency:
NoNet location will be activated as a fallback.
-->
<service
type='service'
version='1'>
<instance name='default' enabled='false'>
<!--
activated, thus the "restart_on none" dependency.
-->
<dependency
name='network-physical'
grouping='require_all'
restart_on='none'
type='service'>
</dependency>
<dependency
name='location_netcfg'
grouping='require_all'
restart_on='none'
type='service'>
</dependency>
<dependency
name='filesystem'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/system/filesystem/usr' />
</dependency>
<!--
This dependency on system/manifest-import is just for the
case of the boot after upgrade. We don't want
imported by manifest-import and enabled. On top of that,
-->
<dependency
name='manifest-import'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/system/manifest-import:default' />
</dependency>
<dependent
name='location_dns-client'
grouping='optional_all'
restart_on='refresh'>
</dependent>
<dependent
name='location_nis-client'
grouping='optional_all'
restart_on='refresh'>
</dependent>
<dependent
name='location_ldap-client'
grouping='optional_all'
restart_on='refresh'>
</dependent>
<dependent
name='location_name-service-cache'
grouping='optional_all'
restart_on='refresh'>
<service_fmri value='svc:/system/name-service-cache' />
</dependent>
<dependent
name='location_nfs-mapid'
grouping='optional_all'
restart_on='refresh'>
</dependent>
<dependent
name='location_identity-domain'
grouping='optional_all'
restart_on='refresh'>
</dependent>
<!--
The following three dependents will be refreshed by
-->
<dependent
name='location_ipfilter'
grouping='optional_all'
restart_on='none'>
</dependent>
<dependent
name='location_ipsec-ike'
grouping='optional_all'
restart_on='none'>
</dependent>
<dependent
name='location_ipsec-policy'
grouping='optional_all'
restart_on='none'>
</dependent>
<exec_method
type='method'
name='start'
timeout_seconds='60' >
<method_context>
<method_credential user='netadm' group='netadm'
supp_groups='netadm' privileges='zone' />
</method_context>
</exec_method>
<exec_method
type='method'
name='refresh'
timeout_seconds='60' >
<method_context>
<method_credential user='netadm' group='netadm'
supp_groups='netadm' privileges='zone' />
</method_context>
</exec_method>
<exec_method
type='method'
name='stop'
exec=':true'
timeout_seconds='60' >
<method_context>
<method_credential user='netadm' group='netadm'
supp_groups='netadm' privileges='zone' />
</method_context>
</exec_method>
<property_group name='general' type='framework'>
<propval name='action_authorization' type='astring'
value='solaris.smf.manage.location' />
</property_group>
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='transient' />
</property_group>
<template>
<common_name>
<loctext xml:lang='C'>
network interface configuration
</loctext>
</common_name>
<documentation>
<manpage title='nwamd' section='1M'
</documentation>
</template>
</instance>
<stability value='Unstable' />
</service>
</service_bundle>