openssh.xml.in 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version='1.0'?>
  2. <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
  3. <!--
  4. Copyright (c) 2006 Chad Mynhier.
  5. Permission to use, copy, modify, and distribute this software for any
  6. purpose with or without fee is hereby granted, provided that the above
  7. copyright notice and this permission notice appear in all copies.
  8. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. -->
  16. <service_bundle type='manifest' name='OpenSSH server'>
  17. <service
  18. name='site/__SYSVINIT_NAME__'
  19. type='service'
  20. version='1'>
  21. <!--
  22. We default to disabled so administrator can decide to enable or not.
  23. -->
  24. <create_default_instance enabled='false'/>
  25. <single_instance/>
  26. <dependency
  27. name='filesystem-local'
  28. grouping='require_all'
  29. restart_on='none'
  30. type='service'>
  31. <service_fmri value='svc:/system/filesystem/local'/>
  32. </dependency>
  33. <dependency
  34. name='network'
  35. grouping='require_all'
  36. restart_on='none'
  37. type='service'>
  38. <service_fmri value='svc:/milestone/network'/>
  39. </dependency>
  40. <dependent
  41. name='multi-user-server'
  42. restart_on='none'
  43. grouping='optional_all'>
  44. <service_fmri value='svc:/milestone/multi-user-server'/>
  45. </dependent>
  46. <exec_method
  47. name='start'
  48. type='method'
  49. exec='__SMF_METHOD_DIR__/__SYSVINIT_NAME__ start'
  50. timeout_seconds='60'>
  51. <method_context/>
  52. </exec_method>
  53. <exec_method
  54. name='stop'
  55. type='method'
  56. exec=':kill'
  57. timeout_seconds='60'>
  58. <method_context/>
  59. </exec_method>
  60. <property_group
  61. name='startd'
  62. type='framework'>
  63. <propval name='ignore_error' type='astring' value='core,signal'/>
  64. </property_group>
  65. <template>
  66. <common_name>
  67. <loctext xml:lang='C'>OpenSSH server</loctext>
  68. </common_name>
  69. <documentation>
  70. <manpage
  71. title='sshd'
  72. section='1M'
  73. manpath='@prefix@/man'/>
  74. </documentation>
  75. </template>
  76. </service>
  77. </service_bundle>