components/isc-dhcp/isc-dhcp-server.xml
changeset 280 c0dae1e3ca2f
child 1915 c02f96475fe6
equal deleted inserted replaced
279:c6af843791cd 280:c0dae1e3ca2f
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
       
     3 <!--
       
     4  CDDL HEADER START
       
     5 
       
     6  The contents of this file are subject to the terms of the
       
     7  Common Development and Distribution License (the "License").
       
     8  You may not use this file except in compliance with the License.
       
     9 
       
    10  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    11  or http://www.opensolaris.org/os/licensing.
       
    12  See the License for the specific language governing permissions
       
    13  and limitations under the License.
       
    14 
       
    15  When distributing Covered Code, include this CDDL HEADER in each
       
    16  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    17  If applicable, add the following below this CDDL HEADER, with the
       
    18  fields enclosed by brackets "[]" replaced with your own identifying
       
    19  information: Portions Copyright [yyyy] [name of copyright owner]
       
    20 
       
    21  CDDL HEADER END
       
    22 
       
    23 	NOTE:  This service manifest is not editable; its contents will
       
    24 	be overwritten by package or patch operations, including
       
    25 	operating system upgrade.  Make customizations in a different
       
    26 	file.
       
    27 
       
    28 	Service manifest for the ISC DHCP Server service.
       
    29 -->
       
    30 <!--
       
    31     Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
       
    32 -->
       
    33 <service_bundle type='manifest' name='isc-dhcp:server'>
       
    34 
       
    35 <service name='network/dhcp/server' type='service' version='1'>
       
    36 
       
    37 	<!--
       
    38 	    We historically ran only in run-level 3, so depend on the
       
    39 	    equivalent milestone to level 2.  We restart on refresh in
       
    40 	    order to handle any changes to nameservice or filesystem
       
    41 	    or other service configuration which may affect DHCP service.
       
    42 	-->
       
    43 	<dependency name='multi-user'
       
    44 		grouping='require_all'
       
    45 		restart_on='refresh'
       
    46 		type='service'>
       
    47 		<service_fmri value='svc:/milestone/multi-user'/>
       
    48 	</dependency>
       
    49 
       
    50 	<!--
       
    51 	   Cant run both DHCP flavors on a system Either run ISC or
       
    52 	   Solaris
       
    53 	-->
       
    54 	<dependency name='dhcp-server'
       
    55 		grouping='exclude_all'
       
    56 		restart_on='none' 
       
    57 		type='service'>
       
    58 		<service_fmri value='svc:/network/dhcp-server'/>
       
    59 	</dependency>
       
    60 	<exec_method type='method' name='start' 
       
    61 		exec='/lib/svc/method/isc-dhcp' timeout_seconds='60'>
       
    62 		<method_context>
       
    63 			<method_credential
       
    64 				user='dhcpserv' group='netadm' 
       
    65 				privileges='basic,net_rawaccess,net_icmpaccess,net_privaddr,sys_ip_config'
       
    66 			/>
       
    67 		</method_context>
       
    68 	</exec_method>
       
    69 
       
    70 	<exec_method type='method' name='stop' exec=':kill' 
       
    71 		timeout_seconds='60'/>
       
    72 
       
    73 	<exec_method type='method' name='refresh' exec=':kill -HUP' 
       
    74 		timeout_seconds='60'/>
       
    75 
       
    76 	<property_group name='firewall_context' type='com.sun,fw_definition'>
       
    77 		<propval name='name' type='astring' value='bootps'/>
       
    78 	</property_group>
       
    79 
       
    80 	<property_group name='firewall_config' type='com.sun,fw_configuration'>
       
    81 		<propval name='policy' type='astring' value='use_global'/>
       
    82 		<propval name='apply_to' type='astring' value=''/>
       
    83 		<propval name='exceptions' type='astring' value=''/>
       
    84 		<propval name='value_authorization' type='astring' 
       
    85 			value='solaris.smf.value.firewall.config'/>
       
    86 	</property_group>
       
    87 
       
    88 	<property_group name='general' type='framework'>
       
    89 		<!-- to start stop dhcp services -->
       
    90 		<propval name='action_authorization' type='astring'
       
    91 			value='solaris.smf.manage.dhcp' />
       
    92 		<propval name='value_authorization' type='astring'
       
    93 			value='solaris.smf.manage.dhcp' />
       
    94 	</property_group>
       
    95 
       
    96 	<instance name='ipv4' enabled='false'>
       
    97 		<property_group name='config' type='application'>
       
    98 			<propval name='debug' type='boolean' value='false'/>
       
    99 			<propval name='config_file' type='astring' 
       
   100 				value='/etc/inet/dhcpd4.conf'/>
       
   101 			<propval name='lease_file' type='astring'
       
   102 				value='/var/db/isc-dhcp/dhcpd4.leases'/>
       
   103 			<property name='listen_ifnames' type='astring' >
       
   104 				<astring_list>
       
   105 					<value_node value='' />
       
   106 				</astring_list>
       
   107 			</property>
       
   108 			<propval name='value_authorization' type='astring'
       
   109 				value='solaris.smf.value.dhcp' />
       
   110 		</property_group>
       
   111 	</instance>
       
   112 
       
   113 	<instance name='ipv6' enabled='false'>
       
   114 		<property_group name='config' type='application'>
       
   115 			<propval name='debug' type='boolean' value='false'/>
       
   116 			<propval name='config_file' type='astring'
       
   117 				value='/etc/inet/dhcpd6.conf'/>
       
   118 			<propval name='lease_file' type='astring'
       
   119 				value='/var/db/isc-dhcp/dhcpd6.leases'/>
       
   120 			<property name='listen_ifnames' type='astring'>
       
   121 				<astring_list>
       
   122 					<value_node value='' />
       
   123 				</astring_list>
       
   124 			</property>
       
   125 			<propval name='value_authorization' type='astring'
       
   126 				value='solaris.smf.value.dhcp' />
       
   127 		</property_group>
       
   128 	</instance>
       
   129 
       
   130 	<stability value='Unstable'/>
       
   131 
       
   132 	<template>
       
   133 		<common_name>
       
   134 			<loctext xml:lang='C'>
       
   135 				ISC DHCP Server
       
   136 			</loctext>
       
   137 		</common_name>
       
   138 		<description>
       
   139 			<loctext xml:lang='C'>
       
   140 ISC DHCP server provides DHCP and BOOTP protocol services to network clients.
       
   141 			</loctext>
       
   142 		</description>
       
   143 		<documentation>
       
   144 			<manpage title='dhcpd' section='1M'
       
   145 				manpath='/usr/share/man'/>
       
   146 		</documentation>
       
   147 	</template>
       
   148 </service>
       
   149 
       
   150 </service_bundle>