dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / iscsitsvc / iscsi-target.xml
blob4598d273806f005b380601eb16520772d3c79f06
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 2008 Sun Microsystems, Inc.  All rights reserved.
26 Use is subject to license terms.
28 Service manifests for iSCSI Target 
29 -->
31 <!--
32         network/iscsi/target - Export iSCSI target services
34 -->
36 <service_bundle type='manifest' name='SUNWiscsitr:iscsi-target'>
38 <service
39         name='network/iscsi/target'
40         type='service'
41         version='1'>
43         <create_default_instance enabled='false' />
45         <single_instance/>
47         <dependency name = 'network'
48                 grouping='require_any'
49                 restart_on='error'
50                 type='service'>
51                 <service_fmri value='svc:/milestone/network'/>
52         </dependency>
54         <dependency name = 'stmf'
55                 grouping='require_all'
56                 restart_on='none'
57                 type='service'>
58                 <service_fmri value='svc:/system/stmf:default'/>
59         </dependency>
61         <exec_method
62                 type='method'
63                 name='start'
64                 exec='/lib/svc/method/iscsi-target start'
65                 timeout_seconds='600'>
66                 <method_context>
67                         <method_credential
68                         user='root'
69                         group='root'
70                         privileges='basic,sys_devices'
71                         />
72                 </method_context>
73         </exec_method>
74         
75         <exec_method
76                 type='method'
77                 name='stop'
78                 exec='/lib/svc/method/iscsi-target stop'
79                 timeout_seconds='600'>
80                 <method_context>
81                         <method_credential
82                         user='root'
83                         group='root'
84                         privileges='basic,sys_devices'
85                         />
86                 </method_context>
87         </exec_method>
89         <property_group name='startd' type='framework'>
90                 <propval name='duration' type='astring'
91                         value='transient' />
92         </property_group>
94         <stability value='Evolving' />
96         <template>
97                 <common_name>
98                         <loctext xml:lang='C'>
99                                 iscsi target
100                         </loctext>
101                 </common_name>
102                 <documentation>
103                         <manpage title='itadm' section='1M'
104                                 manpath='/usr/share/man' />
105                 </documentation>
106         </template>
108 </service>
110 </service_bundle>