Home | History | Annotate | Download | only in ndmpd
      1 <?xml version="1.0"?>
      2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
      3 <!--
      4 Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
      5 Use is subject to license terms.
      6 
      7 NOTE:  This service manifest is not editable; its contents will
      8 be overwritten by package or patch operations, including
      9 operating system upgrade.  Make customizations in a different
     10 file.
     11 
     12 BSD 3 Clause License
     13 
     14 Copyright (c) 2007, The Storage Networking Industry Association.
     15 
     16 Redistribution and use in source and binary forms, with or without
     17 modification, are permitted provided that the following conditions
     18 are met:
     19 	- Redistributions of source code must retain the above copyright
     20 	  notice, this list of conditions and the following disclaimer.
     21 
     22 	- Redistributions in binary form must reproduce the above copyright
     23 	  notice, this list of conditions and the following disclaimer in
     24 	  the documentation and/or other materials provided with the
     25 	  distribution.
     26 
     27 	- Neither the name of The Storage Networking Industry Association (SNIA)
     28 	  nor the names of its contributors may be used to endorse or promote
     29 	  products derived from this software without specific prior written
     30 	  permission.
     31 
     32 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     33 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     34 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     35 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
     36 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     37 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     38 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     39 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     40 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     41 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     42 POSSIBILITY OF SUCH DAMAGE.
     43 	
     44 -->
     45 
     46 <service_bundle type='manifest' name='SUNWndmpr:ndmpd'>
     47 
     48 <!-- Name the service to 'system/ndmpd'  -->
     49 <service
     50 	name='system/ndmpd'
     51 	type='service'
     52 	version='1'>
     53 
     54 
     55 	<!-- Create default service instance.  -->
     56 	<create_default_instance enabled='false' />
     57 
     58 	<!-- Service has single instance  -->
     59 	<single_instance/>
     60 
     61 	<!-- Identify dependencies.  -->
     62 	<dependency
     63 		name='milestone'
     64 		grouping='require_all'
     65 		restart_on='error'
     66 		type='service'>
     67 		<service_fmri value='svc:/milestone/sysconfig' />
     68 	</dependency>
     69 
     70 	<!-- Identify start/stop/refresh methods -->
     71 	<exec_method
     72 		type='method'
     73 		name='start'
     74 		exec='/lib/svc/method/svc-ndmp'
     75 		timeout_seconds='60' >
     76 		<method_context>
     77 			<method_credential
     78 				user='root' group='sys'
     79 			/>
     80 		</method_context>
     81 	</exec_method>
     82 
     83 	<exec_method
     84 		type='method'
     85 		name='stop'
     86 		exec=':kill'
     87 		timeout_seconds='60' >
     88 	</exec_method>
     89 
     90 	<exec_method
     91 		type='method'
     92 		name='refresh'
     93 		exec=':kill -HUP'
     94 		timeout_seconds='60' >
     95 	</exec_method>
     96 
     97 	<property_group name='general' type='framework'>
     98 		<!-- To Start/Stop/Refresh the service -->
     99 		<propval name='action_authorization' type='astring'
    100 			value='solaris.smf.manage.ndmp' />
    101 		<!-- To Configure service parameters -->
    102 		<propval name='value_authorization' type='astring'
    103 			value='solaris.smf.manage.ndmp' />
    104 	</property_group>
    105 
    106 	<property_group name='read' type='application'>
    107 		<!-- To read protected parameters -->
    108 		<propval name='read_authorization' type='astring'
    109 			value='solaris.smf.read.ndmp' />
    110 		<propval name='value_authorization' type='astring'
    111 			value='solaris.smf.value.ndmp' />
    112 		<propval name='cram-md5-username' type='astring' value='' />
    113 		<propval name='cram-md5-password' type='astring' value='' />
    114 		<propval name='cleartext-username' type='astring' value='' />
    115 		<propval name='cleartext-password' type='astring' value='' />
    116 	</property_group>
    117 
    118 	<property_group name='ndmpd' type='application'>
    119 		<stability value='Evolving' />
    120 		<propval name='debug-path' type='astring' value='/var/ndmp' />
    121 		<propval name='plugin-path' type='astring' value='/var/ndmp' />
    122 		<propval name='dump-pathnode' type='boolean' value='false' />
    123 		<propval name='tar-pathnode' type='boolean' value='false' />
    124 		<propval name='ignore-ctime' type='boolean' value='false' />
    125 		<propval name='token-maxseq' type='integer' value='9' />
    126 		<propval name='version' type='integer' value='4' />
    127 		<propval name='dar-support' type='boolean' value='false' />
    128 		<propval name='backup-quarantine' type='boolean' value='false' />
    129 		<propval name='restore-quarantine' type='boolean' value='false' />
    130 		<propval name='overwrite-quarantine' type='boolean' value='false' />
    131 		<propval name='mover-nic' type='astring' value='' />
    132 		<propval name='fh-inode' type='boolean' value='false' />
    133 		<propval name='include-lmtime' type='boolean' value='false' />
    134 		<propval name='restore-fullpath' type='boolean' value='false' />
    135 		<propval name='socket-css' type='integer' value='65' />
    136 		<propval name='socket-crs' type='integer' value='80' />
    137 		<propval name='mover-recordsize' type='integer' value='60' />
    138 		<propval name='restore-wildcard-enable' type='boolean' value='false' />
    139 		<propval name='tcp-port' type='integer' value='10000' />
    140 		<propval name='value_authorization' type='astring'
    141 			value='solaris.smf.value.ndmp' />
    142 	</property_group>
    143 
    144 	<!-- Create Service Template information -->
    145 	<template>
    146 		<common_name>
    147 			<loctext xml:lang='C'> NDMP Service</loctext>
    148 		</common_name>
    149 		<documentation>
    150 			<manpage title='ndmpd' section='1M'
    151 				manpath='/usr/share/man' />
    152 		</documentation>
    153 	</template>
    154 
    155 
    156 </service>
    157 
    158 </service_bundle>
    159