Home | History | Annotate | Download | only in iscsitgtd
      1 <?xml version="1.0"?>
      2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
      3 <!--
      4  Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
      5  Use is subject to license terms.
      6 
      7  CDDL HEADER START
      8 
      9   The contents of this file are subject to the terms of the
     10   Common Development and Distribution License (the "License").
     11   You may not use this file except in compliance with the License.
     12  
     13   You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     14   or http://www.opensolaris.org/os/licensing.
     15   See the License for the specific language governing permissions
     16   and limitations under the License.
     17  
     18   When distributing Covered Code, include this CDDL HEADER in each
     19   file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     20   If applicable, add the following below this CDDL HEADER, with the
     21   fields enclosed by brackets "[]" replaced with your own identifying
     22   information: Portions Copyright [yyyy] [name of copyright owner]
     23 
     24  CDDL HEADER END
     25 
     26 	ident	"%Z%%M%	%I%	%E% SMI"
     27 
     28 
     29 	NOTE:  This service manifest is not editable; its contents will
     30 	be overwritten by package or patch operations, including
     31 	operating system upgrade.  Make customizations in a different
     32 	file.
     33 -->
     34 
     35 <service_bundle type='manifest' name='SUNWiscsitgtu:iscsitgt'>
     36 
     37 <service
     38 	name='system/iscsitgt'
     39 	type='service'
     40 	version='1'>
     41 
     42 	<create_default_instance enabled='false' />
     43 
     44 	<single_instance/>
     45 
     46 	<!-- We need name resolution and full filesystem access -->
     47 	<dependency
     48 		name='milestone'
     49 		grouping='require_all'
     50 		restart_on='none'
     51 		type='service'>
     52 		<service_fmri value='svc:/milestone/multi-user' />
     53 	</dependency>
     54 
     55 
     56 	<exec_method
     57 		type='method'
     58 		name='start'
     59 		exec='/lib/svc/method/svc-iscsitgt %m'
     60 		timeout_seconds='60'>
     61 		<method_context>
     62 			<method_credential
     63 				user='root'
     64 				group='sys'
     65 				privileges='basic,sys_config,net_rawaccess,sys_mount,file_dac_write,sys_devices,proc_setid' />
     66 		</method_context>
     67 	</exec_method>
     68 
     69 	<exec_method
     70 		type='method'
     71 		name='stop'
     72 		exec='/lib/svc/method/svc-iscsitgt %m %{restarter/contract}'
     73 		timeout_seconds='60'>
     74 		<method_context>
     75 			<method_credential
     76 				user='root'
     77 				group='sys'
     78 				privileges='basic,sys_config,net_rawaccess,sys_mount,file_dac_write,sys_devices,proc_setid' />
     79 		</method_context>
     80 	</exec_method>
     81 
     82 	<property_group name='general' type='framework'>
     83 		<propval name='action_authorization' type='astring'
     84 			value='solaris.smf.manage.iscsitgt' />
     85 		<!-- To read and modify protected properties -->
     86 		<propval name='read_authorization' type='astring'
     87 			value='solaris.smf.read.iscsitgt' />
     88 		<propval name='value_authorization' type='astring'
     89 			value='solaris.smf.value.iscsitgt' />
     90 		<propval name='modify_authorization' type='astring'
     91 			value='solaris.smf.modify.iscsitgt' />
     92 	</property_group>
     93 
     94 	<property_group name='application' type='framework'>
     95 		<stability value='Unstable' />
     96 		<propval name='auto_enable' type='boolean' value='true' />
     97 	</property_group>
     98 
     99 	<stability value='Unstable' />
    100 
    101 	<template>
    102 		<common_name>
    103 			<loctext xml:lang='C'>
    104 				iSCSI Target
    105 			</loctext>
    106 		</common_name>
    107 		<documentation>
    108 			<manpage title='iscsitgtd' section='1M'
    109 				manpath='/usr/share/man' />
    110 			<manpage title='iscsitadm' section='1M'
    111 				manpath='/usr/share/man' />
    112 		</documentation>
    113 	</template>
    114 </service>
    115 
    116 </service_bundle>
    117