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