PageRenderTime 278ms CodeModel.GetById 144ms app.highlight 2ms RepoModel.GetById 83ms app.codeStats 0ms

/solaris/smf/iscdhcpd.xml

http://wadofstuff.googlecode.com/
XML | 113 lines | 69 code | 11 blank | 33 comment | 0 complexity | e8592c4a138d25ba9f0d315e196bdac7 MD5 | raw file
  1<?xml version="1.0"?>
  2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
  3
  4<!--
  5
  6Copyright (c) 2007, Matthew Flanagan
  7All rights reserved.
  8
  9Redistribution and use in source and binary forms, with or without modification,
 10are permitted provided that the following conditions are met:
 11
 12    1. Redistributions of source code must retain the above copyright notice,
 13       this list of conditions and the following disclaimer.
 14
 15    2. Redistributions in binary form must reproduce the above copyright
 16       notice, this list of conditions and the following disclaimer in the
 17       documentation and/or other materials provided with the distribution.
 18
 19    3. Neither the name of the project nor the names of its contributors may
 20       be used to endorse or promote products derived from this software
 21       without specific prior written permission.
 22
 23THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 24ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 25WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 26DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
 27ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 28(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 29LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 30ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 31(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 32SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 33
 34-->
 35
 36<service_bundle type='manifest' name='iscdhcpd'>
 37
 38<service
 39	name='site/network/dhcpd'
 40	type='service'
 41	version='1'>
 42
 43	<create_default_instance enabled="false"/>
 44	<single_instance/>
 45	<dependency name='filesystem_local'
 46		grouping='require_all'
 47		restart_on='none'
 48		type='service'>
 49		<service_fmri value='svc:/system/filesystem/local:default'/>
 50	</dependency>
 51	<dependency name='loopback'
 52		grouping='require_all'
 53		restart_on='error'
 54		type='service'>
 55		<service_fmri value='svc:/network/loopback:default'/>
 56	</dependency>
 57
 58	<dependency name='physical'
 59		grouping='optional_all'
 60		restart_on='error'
 61		type='service'>
 62		<service_fmri value='svc:/network/physical:default'/>
 63	</dependency>
 64
 65	<dependency name='config_data'
 66			grouping='require_all'
 67			restart_on='restart'
 68			type='path'>
 69			<service_fmri
 70				value='file://localhost/usr/local/etc/dhcpd.conf' />
 71	</dependency>
 72	<dependency name='lease_data'
 73			grouping='require_all'
 74			restart_on='restart'
 75			type='path'>
 76			<service_fmri
 77				value='file://localhost/var/dhcp/dhcpd.leases' />
 78	</dependency>
 79	<exec_method
 80		type='method'
 81		name='start'
 82		exec='/usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf'
 83		timeout_seconds='60' />
 84
 85	<exec_method
 86		type='method'
 87		name='stop'
 88		exec=':kill'
 89		timeout_seconds='60' />
 90
 91	<property_group name="startd" type="framework">
 92		<!-- sub-process core dumps shouldn't restart
 93			session -->
 94		<propval name='ignore_error' type='astring'
 95			value='core,signal' />
 96	</property_group>
 97
 98	<stability value='Evolving' />
 99
100    <template>
101        <common_name>
102            <loctext xml:lang='C'>
103				ISC DHCP daemon.
104            </loctext>
105        </common_name>
106        <documentation>
107            <manpage title='dhcpd' section='1M' manpath='/usr/local/man' />
108            <doc_link name='www.isc.org' uri='http://www.isc.org' />
109        </documentation>
110    </template>
111</service>
112
113</service_bundle>