Home | History | Annotate | Download | only in bind
      1 <?xml version="1.0"?>
      2 <!--
      3 CDDL HEADER START
      4 
      5 The contents of this file are subject to the terms of the
      6 Common Development and Distribution License (the "License").
      7 You may not use this file except in compliance with the License.
      8 
      9 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     10 or http://www.opensolaris.org/os/licensing.
     11 See the License for the specific language governing permissions
     12 and limitations under the License.
     13 
     14 When distributing Covered Code, include this CDDL HEADER in each
     15 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     16 If applicable, add the following below this CDDL HEADER, with the
     17 fields enclosed by brackets "[]" replaced with your own identifying
     18 information: Portions Copyright [yyyy] [name of copyright owner]
     19 
     20 CDDL HEADER END
     21 -->
     22 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
     23 <!--
     24 	Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     25 	Use is subject to license terms.
     26 
     27 	ident	"@(#)server.xml	1.9	09/07/12 SMI"
     28 -->
     29 
     30 <!-- Portions Copyright 2007 Vedran Bender -->
     31 
     32 <service_bundle type='manifest' name='SUNWbindr:dns-server'>
     33 
     34 <service
     35   name='network/dns/server'
     36   type='service'
     37   version='1'>
     38 
     39     <dependency
     40       name='filesystem_minimal'
     41       grouping='require_all'
     42       restart_on='none'
     43       type='service'>
     44       <service_fmri value='svc:/system/filesystem/local' />
     45     </dependency>
     46 
     47     <dependency
     48       name='loopback'
     49       grouping='require_any'
     50       restart_on='error'
     51       type='service'>
     52       <service_fmri value='svc:/network/loopback' />
     53     </dependency>
     54 
     55     <dependency
     56       name='network'
     57       grouping='optional_all'
     58       restart_on='error'
     59       type='service'>
     60       <service_fmri value='svc:/milestone/network' />
     61     </dependency>
     62 
     63     <exec_method
     64       type='method'
     65       name='stop'
     66       exec=':kill'
     67       timeout_seconds='60' />
     68 
     69     <!--
     70       	In order to run multiple named(1M) processes with their own
     71       	configuration file or properties each must have a unique
     72       	instance.
     73     -->
     74     <instance name='default' enabled='false' >
     75 
     76       <exec_method
     77 	type='method'
     78 	name='start'
     79 	exec='/lib/svc/method/dns-server %m %i'
     80 	timeout_seconds='60' >
     81 	<method_context>
     82 	  <!--
     83 	  	privileges: (see privileges(5) and /etc/security/priv_names)
     84 		file_dac_read, file_dac_search:
     85 	  		Necessary for reading the configuration file
     86 			even it is restricted by the file permission.
     87 	  	net_privaddr:
     88 	  		Bind to a privileged port number.
     89   		sys_resource:
     90 	  		Permit the setting of resource limits (eg. stack
     91 	  		size).
     92 		proc_chroot:
     93 	  		Permit use of chroot(2).
     94 	  -->
     95 	  <method_credential
     96 	    user='root'
     97 	    group='root'
     98 	    privileges='basic,!proc_session,!proc_info,!file_link_any,net_privaddr,file_dac_read,file_dac_search,sys_resource,proc_chroot' />
     99 	</method_context>
    100       </exec_method>
    101 
    102       <!--
    103 	      SIGHUP causes named to reread its configuration file, but not any
    104 	      of the properties below.
    105       -->
    106       <exec_method
    107 	type='method'
    108 	name='refresh'
    109 	exec=':kill -HUP'
    110 	timeout_seconds='60'>
    111 	<method_context/>
    112       </exec_method>
    113 
    114       <property_group name='general' type='framework'>
    115 	<!-- manage DNS server state -->
    116 	<propval name='action_authorization' type='astring'
    117 	  value='solaris.smf.manage.bind' />
    118 	<propval name='value_authorization' type='astring'
    119 	  value='solaris.smf.manage.bind' />
    120       </property_group>
    121 
    122       <!-- Default property settings for named(1M) instance. -->
    123       <property_group name='options' type='application'>
    124 
    125 	<!--
    126 		server: specifies an alternative server command.  If
    127 		not specified the default /usr/sbin/named is used.
    128 	-->
    129 	<propval name='server' type='astring' value='' />
    130 
    131 	<!--
    132 		configuration_file: specifies an alternative
    133 		configuration file to be used. The property is similar
    134 		to named(1M) command line option '-c'
    135 	-->
    136 	<propval name='configuration_file' type='astring' value='' />
    137 	<!--
    138 		ip_interfaces: specifies which IP transport BIND will
    139 		transmit on. Possible values are 'IPv4' or 'IPv6'. Any
    140 		other setting assumes 'all', the default.
    141 		Equivalent command line option '-4' or '-6'.
    142 	-->
    143 	<propval name='ip_interfaces' type='astring' value='all' />
    144 
    145 	<!--
    146 		listen_on_port: Specifies the default UDP and TCP port
    147 		which will be used to listen for DNS requests.
    148 		Equivalent command line option '-p <integer>'.
    149 	-->
    150 	<propval name='listen_on_port' type='integer' value='0' />
    151 
    152 	<!--
    153 		debug_level: Specifies the default debug level.  The
    154 		default is 0; no debugging. The Higher the number the
    155 		more verbose debug information becomes.
    156 		Equivalent command line option '-d <integer>'.
    157 	-->
    158 	<propval name='debug_level' type='integer' value='0' />
    159 
    160 	<!--
    161 		threads: Specifies the number of cpu worker threads to
    162 		create.  The default of 0 causes named to try and
    163 		determine the number of CPUs present and create one
    164 		thread per CPU.
    165 		Equivalent command line option '-n <integer>'.
    166 	-->
    167 	<propval name='threads' type='integer' value='0' />
    168 
    169 	<!--
    170 		chroot_dir: Change the root directory using chroot(2)
    171 		to directory after processing the command line
    172 		arguments, but before reading the configuration file.
    173 		Equivalent command line option '-t <pathname>'.
    174 	-->
    175 	<propval name='chroot_dir' type='astring' value='' />
    176 
    177       </property_group>
    178 
    179 	</instance>
    180 
    181 	<stability value='Unstable' />
    182 
    183 	<template>
    184 		<common_name>
    185 			<loctext xml:lang='C'>
    186 				BIND DNS server
    187 			</loctext>
    188 		</common_name>
    189 		<documentation>
    190 			<manpage title='named' section='1M'
    191 			    manpath='/usr/man' />
    192 		</documentation>
    193 	</template>
    194 
    195 </service>
    196 
    197 </service_bundle>
    198