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