components/isc-dhcp/isc-dhcp-relay.xml
changeset 280 c0dae1e3ca2f
child 1915 c02f96475fe6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/isc-dhcp/isc-dhcp-relay.xml	Thu Jun 02 13:26:03 2011 -0700
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+	NOTE:  This service manifest is not editable; its contents will
+	be overwritten by package or patch operations, including
+	operating system upgrade.  Make customizations in a different
+	file.
+
+	Service manifest for the ISC DHCP Relay service.
+-->
+<!--
+    Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+-->
+<service_bundle type='manifest' name='isc-dhcp:relay'>
+
+<service name='network/dhcp/relay' type='service' version='1'>
+
+	<!--
+		We historically ran only in run-level 3, so depend on the
+		equivalent milestone to level 2.  We restart on refresh in
+		order to handle any changes to nameservice or filesystem
+		or other service configuration which may affect DHCP service.
+	-->
+	<dependency name='multi-user'
+		grouping='require_all' 
+		restart_on='refresh'
+		type='service'>
+		<service_fmri value='svc:/milestone/multi-user'/>
+	</dependency>
+
+	<!--
+		Running both DHCP flavors on a system is not supported - either
+		run ISC or Solaris.
+	-->
+	<dependency name='dhcp-server'
+		grouping='exclude_all'
+		restart_on='none' 
+		type='service'>
+		<service_fmri value='svc:/network/dhcp-server'/>
+	</dependency>
+
+	<exec_method type='method' name='start' 
+		exec='/lib/svc/method/isc-dhcp' timeout_seconds='60'>
+		<method_context>
+			<method_credential user='dhcpserv' group='netadm' 
+		privileges='basic,net_rawaccess,net_icmpaccess,net_privaddr,sys_ip_config'/>
+		</method_context>
+	</exec_method>
+
+	<exec_method type='method' name='stop' exec=':kill' 
+		timeout_seconds='60'/>
+
+	<exec_method type='method' name='refresh' exec=':kill -HUP' 
+		timeout_seconds='60'/>
+
+	<property_group name='firewall_context' type='com.sun,fw_definition'>
+		<propval name='name' type='astring' value='bootps'/>
+	</property_group>
+
+	<property_group name='firewall_config' type='com.sun,fw_configuration'>
+		<propval name='policy' type='astring' value='use_global'/>
+		<propval name='apply_to' type='astring' value=''/>
+		<propval name='exceptions' type='astring' value=''/>
+		<propval name='value_authorization' type='astring' 
+			value='solaris.smf.value.firewall.config'/>
+	</property_group>
+
+	<property_group name='general' type='framework'>
+		<!-- to start stop dhcp services -->
+		<propval name='action_authorization' type='astring'
+			value='solaris.smf.manage.dhcp' />
+		<propval name='value_authorization' type='astring'
+                        value='solaris.smf.manage.dhcp' />
+        </property_group>
+
+	<instance name='ipv4' enabled='false'>
+		<property_group name='config' type='application'>
+			<propval name='debug' type='boolean' value='false'/>
+			<propval name='append_agent_option' type='boolean' 
+			    value='false'/>
+			<property name='servers' type='astring'> 
+				<astring_list>
+					<value_node value=''/>
+				</astring_list>
+			</property>
+			<property name='listen_ifnames' type='astring' >
+				<astring_list>
+					<value_node value=''/>
+				</astring_list>
+			</property>
+			<propval name='value_authorization' type='astring'
+				value='solaris.smf.value.dhcp' />
+		</property_group>
+	</instance>
+
+	<instance name='ipv6' enabled='false'>
+		<property_group name='config' type='application'>
+			<propval name='debug' type='boolean' value='false'/>
+			<property name='receive_query_links' type='astring'>
+				<astring_list>
+					<value_node value=''/>
+				</astring_list>
+			</property>
+			<property name='forward_query_links' type='astring'>
+				<astring_list>
+					<value_node value=''/>
+				</astring_list>
+			</property>
+			<propval name='value_authorization' type='astring'
+                                value='solaris.smf.value.dhcp' />
+		</property_group>
+	</instance>
+
+	<stability value='Unstable'/>
+
+	<template>
+		<common_name>
+			<loctext xml:lang='C'>
+				ISC DHCP Relay
+			</loctext>
+		</common_name>
+		<description>
+			<loctext xml:lang='C'>
+ISC DHCP Relay service relays DHCP and BOOTP requests from one subnet with no DHCP server to another subnet with a DHCP server.
+			</loctext>
+		</description>
+		<documentation>
+			<manpage title='dhcrelay' section='1M'
+				manpath='/usr/share/man'/>
+		</documentation>
+	</template>
+</service>
+
+</service_bundle>