xref: /titanic_51/usr/src/cmd/iscsitsvc/iscsi-target.xml (revision 1e49577a7fcde812700ded04431b49d67cc57d6d)
1<?xml version='1.0'?>
2<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
3
4<!--
5
6CDDL HEADER START
7
8The contents of this file are subject to the terms of the
9Common Development and Distribution License (the "License").
10You may not use this file except in compliance with the License.
11
12You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13or http://www.opensolaris.org/os/licensing.
14See the License for the specific language governing permissions
15and limitations under the License.
16
17When distributing Covered Code, include this CDDL HEADER in each
18file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19If applicable, add the following below this CDDL HEADER, with the
20fields enclosed by brackets "[]" replaced with your own identifying
21information: Portions Copyright [yyyy] [name of copyright owner]
22
23CDDL HEADER END
24
25Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
26Use is subject to license terms.
27
28Service manifests for iSCSI Target
29-->
30
31<!--
32	network/iscsi/target - Export iSCSI target services
33
34-->
35
36<service_bundle type='manifest' name='SUNWiscsitr:iscsi-target'>
37
38<service
39	name='network/iscsi/target'
40	type='service'
41	version='1'>
42
43	<create_default_instance enabled='false' />
44
45	<single_instance/>
46
47	<dependency name = 'network'
48		grouping='require_any'
49		restart_on='error'
50		type='service'>
51		<service_fmri value='svc:/milestone/network'/>
52	</dependency>
53
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>
60
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>
88
89	<property_group name='startd' type='framework'>
90		<propval name='duration' type='astring'
91			value='transient' />
92	</property_group>
93
94	<stability value='Evolving' />
95
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>
107
108</service>
109
110</service_bundle>
111