xref: /titanic_51/usr/src/cmd/stmfsvc/stmf.xml (revision dcda19f50b2b80bfc622fff718ac04fb0e1cb670)
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
28
29Service manifests for SCSI Target Mode Framework
30-->
31
32<!--
33
34-->
35
36<service_bundle type='manifest' name='stmf'>
37
38<service
39	name='system/stmf'
40	type='service'
41	version='1'>
42
43	<create_default_instance enabled='false' />
44
45	<single_instance/>
46
47	<dependency name = 'filesystem_local'
48		grouping='require_all'
49		restart_on='none'
50		type='service'>
51		<service_fmri
52			value='svc:/system/filesystem/local:default'/>
53	</dependency>
54
55	<exec_method
56		type='method'
57		name='start'
58		exec='/lib/svc/method/svc-stmf start'
59		timeout_seconds='600'>
60		<method_context>
61			<method_credential
62			user='root'
63			group='root'
64			privileges='basic,sys_devices'
65			/>
66		</method_context>
67	</exec_method>
68
69	<exec_method
70		type='method'
71		name='stop'
72		exec='/lib/svc/method/svc-stmf stop'
73		timeout_seconds='600'>
74		<method_context>
75			<method_credential
76			user='root'
77			group='root'
78			privileges='basic,sys_devices'
79			/>
80		</method_context>
81	</exec_method>
82
83	<property_group name='startd' type='framework'>
84		<propval name='duration' type='astring'
85			value='transient' />
86	</property_group>
87
88	<property_group name='general' type='framework'>
89		<!-- to start stop stmf -->
90		<propval name='action_authorization' type='astring'
91			value='solaris.smf.manage.stmf' />
92	</property_group>
93
94	<property_group name='host_groups' type='application'>
95	</property_group>
96
97	<property_group name='target_groups' type='application'>
98	</property_group>
99
100
101	<stability value='Evolving' />
102
103	<template>
104		<common_name>
105			<loctext xml:lang='C'>
106				STMF
107			</loctext>
108		</common_name>
109		<documentation>
110			<manpage title='stmf' section='7D'
111				manpath='/usr/share/man' />
112			<manpage title='stmfadm' section='1M'
113				manpath='/usr/share /man' />
114		</documentation>
115	</template>
116
117</service>
118
119</service_bundle>
120