1 <?xml version='1.0'?>
   2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
   3 <!--
   4  Copyright 2009 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         NOTE:  This service manifest is not editable; its contents will
  27         be overwritten by package or patch operations, including
  28         operating system upgrade.  Make customizations in a different
  29         file.
  30 
  31         Service manifest for the SunOS DHCP service.
  32 -->
  33 
  34 <service_bundle type='manifest' name='SUNWdhcsr:dhcp-server'>
  35 
  36 <service
  37         name='network/dhcp-server'
  38         type='service'
  39         version='1'>
  40 
  41         <create_default_instance enabled='false' />
  42 
  43         <single_instance/>
  44 
  45         <!--
  46             We historically ran only in run-level 3, so depend on the
  47             equivalent milestone to level 2.  We restart on refresh in
  48             order to handle any changes to nameservice or filesystem
  49             or other service configuration which may affect DHCP service.
  50         -->
  51         <dependency
  52                 name='multi-user'
  53                 grouping='require_all'
  54                 restart_on='refresh'
  55                 type='service'>
  56                 <service_fmri value='svc:/milestone/multi-user' />
  57         </dependency>
  58 
  59         <dependency
  60                 name='config_data'
  61                 grouping='require_all'
  62                 restart_on='restart'
  63                 type='path'>
  64                 <service_fmri value='file:///etc/inet/dhcpsvc.conf' />
  65         </dependency>
  66 
  67         <dependent
  68                 name='dhcp_multi-user-server'
  69                 grouping='optional_all'
  70                 restart_on='none'>
  71                 <service_fmri value='svc:/milestone/multi-user-server' />
  72         </dependent>
  73 
  74         <exec_method
  75                 type='method'
  76                 name='start'
  77                 exec='/usr/lib/inet/in.dhcpd'
  78                 timeout_seconds='60' >
  79                 <method_context>
  80                         <method_credential
  81                                 user='root'
  82                                 group='root'
  83                                 privileges='zone,net_icmpaccess,sys_ip_config'
  84                         />
  85                 </method_context>
  86         </exec_method>
  87 
  88         <exec_method
  89                 type='method'
  90                 name='stop'
  91                 exec=':kill'
  92                 timeout_seconds='60' />
  93 
  94         <exec_method
  95                 type='method'
  96                 name='refresh'
  97                 exec=':kill -HUP'
  98                 timeout_seconds='60' />
  99 
 100         <property_group name='firewall_context' type='com.sun,fw_definition'>
 101                 <propval name='name' type='astring' value='bootps' />
 102         </property_group>
 103 
 104         <property_group name='firewall_config' type='com.sun,fw_configuration'>
 105                 <propval name='policy' type='astring' value='use_global' />
 106                 <propval name='apply_to' type='astring' value='' />
 107                 <propval name='exceptions' type='astring' value='' />
 108                 <propval name='value_authorization' type='astring'
 109                         value='solaris.smf.value.firewall.config' />
 110         </property_group>
 111 
 112         <stability value='Unstable' />
 113 
 114         <template>
 115                 <common_name>
 116                         <loctext xml:lang='C'>
 117                                 DHCP server
 118                         </loctext>
 119                 </common_name>
 120                 <description>
 121                         <loctext xml:lang='C'>
 122 The SunOS DHCP server, which provides DHCP and BOOTP
 123 protocol services to DHCP and BOOTP clients.
 124                         </loctext>
 125                 </description>
 126                 <documentation>
 127                         <manpage title='in.dhcpd' section='1M'
 128                                 manpath='/usr/share/man' />
 129                 </documentation>
 130         </template>
 131 </service>
 132 
 133 </service_bundle>