salt-master.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0"?>
  2. <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
  3. <!--
  4. Created by Manifold
  5. -->
  6. <service_bundle type="manifest" name="salt-master">
  7. <service name="network/salt-master" type="service" version="1">
  8. <create_default_instance enabled="true"/>
  9. <single_instance/>
  10. <dependency name="config-file"
  11. grouping="require_all"
  12. restart_on="none"
  13. type="path">
  14. <service_fmri value='file:///opt/local/etc/salt/master'/>
  15. </dependency>
  16. <dependency name="network"
  17. grouping="require_all"
  18. restart_on="error"
  19. type="service">
  20. <service_fmri value="svc:/milestone/network:default"/>
  21. </dependency>
  22. <dependency name="filesystem"
  23. grouping="require_all"
  24. restart_on="error"
  25. type="service">
  26. <service_fmri value="svc:/system/filesystem/local"/>
  27. </dependency>
  28. <method_context>
  29. <method_environment>
  30. <envvar name='PATH' value='/usr/local/sbin:/usr/local/bin:/opt/local/sbin:/opt/local/bin:/usr/sbin:/usr/bin:/sbin'/>
  31. </method_environment>
  32. </method_context>
  33. <exec_method type="method"
  34. name="start"
  35. exec="/opt/local/bin/salt-master -c %{config_dir}"
  36. timeout_seconds="60"/>
  37. <exec_method type="method"
  38. name="stop"
  39. exec=":kill"
  40. timeout_seconds="60"/>
  41. <property_group name="startd" type="framework">
  42. <propval name="duration" type="astring" value="child"/>
  43. <propval name="ignore_error" type="astring" value="core,signal"/>
  44. </property_group>
  45. <property_group name="application" type="application">
  46. <propval name="config_file" type="astring" value="/opt/local/etc/salt/master"/>
  47. <propval name="config_dir" type="astring" value="/opt/local/etc/salt"/>
  48. </property_group>
  49. <stability value="Unstable"/>
  50. <template>
  51. <common_name>
  52. <loctext xml:lang="C">Salt Master</loctext>
  53. </common_name>
  54. <documentation>
  55. <doc_link name="SaltStack Documentation"
  56. uri="http://docs.saltstack.com"/>
  57. </documentation>
  58. </template>
  59. </service>
  60. </service_bundle>