Unleashed v1.4
[unleashed.git] / usr / src / cmd / fcoesvc / fcoe_target.xml
blob7d487207e74fe67d8fcd85f474485b4f1ab8e6aa
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
4 <!--
6 CDDL HEADER START
8 The contents of this file are subject to the terms of the
9 Common Development and Distribution License (the "License").
10 You may not use this file except in compliance with the License.
12 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 or http://www.opensolaris.org/os/licensing.
14 See the License for the specific language governing permissions
15 and limitations under the License.
17 When distributing Covered Code, include this CDDL HEADER in each
18 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 If applicable, add the following below this CDDL HEADER, with the
20 fields enclosed by brackets "[]" replaced with your own identifying
21 information: Portions Copyright [yyyy] [name of copyright owner]
23 CDDL HEADER END
25 Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
26 Use is subject to license terms.
28 Service manifests for the FCoE target configuration
29 -->
31 <!--
32         system/fcoe_target - Export FCoE target port services
33 -->
35 <service_bundle type='manifest' name='SUNWfcprtr:fcoe_target'>
37 <service
38         name='system/fcoe_target'
39         type='service'
40         version='1'>
42         <create_default_instance enabled='false' />
44         <single_instance/>
46         <dependency name = 'network'
47                 grouping='require_any'
48                 restart_on='error'
49                 type='service'>
50                 <service_fmri value='svc:/milestone/network'/>
51         </dependency>
53         <dependency name = 'stmf'
54                 grouping='require_all'
55                 restart_on='none'
56                 type='service'>
57                 <service_fmri value='svc:/system/stmf:default'/>
58         </dependency>
60         <exec_method
61                 type='method'
62                 name='start'
63                 exec='/lib/svc/method/svc-fcoet'
64                 timeout_seconds='600'>
65                 <method_context>
66                         <method_credential
67                         user='root'
68                         group='root'
69                         privileges='basic,sys_devices'
70                         />
71                 </method_context>
72         </exec_method>
74         <exec_method
75                 type='method'
76                 name='stop'
77                 exec=':true'
78                 timeout_seconds='60'>
79                 <method_context>
80                         <method_credential
81                         user='root'
82                         group='root'
83                         privileges='basic,sys_devices'
84                         />
85                 </method_context>
86         </exec_method>
88         <property_group name='startd' type='framework'>
89                 <propval name='duration' type='astring'
90                         value='transient' />
91         </property_group>
93         <stability value='Evolving' />
95         <template>
96                 <common_name>
97                         <loctext xml:lang='C'>
98                                 fcoe target service
99                         </loctext>
100                 </common_name>
101                 <documentation>
102                         <manpage title='fcadm' section='8'
103                                 manpath='/usr/share/man' />
104                 </documentation>
105         </template>
107 </service>
109 </service_bundle>