/solaris/smf/iscdhcpd.xml
XML | 113 lines | 69 code | 11 blank | 33 comment | 0 complexity | e8592c4a138d25ba9f0d315e196bdac7 MD5 | raw file
Possible License(s): BSD-3-Clause
- <?xml version="1.0"?>
- <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
- <!--
- Copyright (c) 2007, Matthew Flanagan
- All rights reserved.
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- 3. Neither the name of the project nor the names of its contributors may
- be used to endorse or promote products derived from this software
- without specific prior written permission.
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- -->
- <service_bundle type='manifest' name='iscdhcpd'>
- <service
- name='site/network/dhcpd'
- type='service'
- version='1'>
- <create_default_instance enabled="false"/>
- <single_instance/>
- <dependency name='filesystem_local'
- grouping='require_all'
- restart_on='none'
- type='service'>
- <service_fmri value='svc:/system/filesystem/local:default'/>
- </dependency>
- <dependency name='loopback'
- grouping='require_all'
- restart_on='error'
- type='service'>
- <service_fmri value='svc:/network/loopback:default'/>
- </dependency>
- <dependency name='physical'
- grouping='optional_all'
- restart_on='error'
- type='service'>
- <service_fmri value='svc:/network/physical:default'/>
- </dependency>
- <dependency name='config_data'
- grouping='require_all'
- restart_on='restart'
- type='path'>
- <service_fmri
- value='file://localhost/usr/local/etc/dhcpd.conf' />
- </dependency>
- <dependency name='lease_data'
- grouping='require_all'
- restart_on='restart'
- type='path'>
- <service_fmri
- value='file://localhost/var/dhcp/dhcpd.leases' />
- </dependency>
- <exec_method
- type='method'
- name='start'
- exec='/usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf'
- timeout_seconds='60' />
- <exec_method
- type='method'
- name='stop'
- exec=':kill'
- timeout_seconds='60' />
- <property_group name="startd" type="framework">
- <!-- sub-process core dumps shouldn't restart
- session -->
- <propval name='ignore_error' type='astring'
- value='core,signal' />
- </property_group>
- <stability value='Evolving' />
- <template>
- <common_name>
- <loctext xml:lang='C'>
- ISC DHCP daemon.
- </loctext>
- </common_name>
- <documentation>
- <manpage title='dhcpd' section='1M' manpath='/usr/local/man' />
- <doc_link name='www.isc.org' uri='http://www.isc.org' />
- </documentation>
- </template>
- </service>
- </service_bundle>