salt-master.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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="false"/>
  9. <single_instance/>
  10. <dependency name="config-file"
  11. grouping="require_all"
  12. restart_on="none"
  13. type="path">
  14. <service_fmri value='file:///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. <exec_method type="method"
  30. name="start"
  31. exec="/opt/local/bin/salt-master"
  32. timeout_seconds="60"/>
  33. <exec_method type="method"
  34. name="stop"
  35. exec=":kill"
  36. timeout_seconds="60"/>
  37. <property_group name="startd" type="framework">
  38. <propval name="duration" type="astring" value="child"/>
  39. <propval name="ignore_error" type="astring" value="core,signal"/>
  40. </property_group>
  41. <property_group name="application" type="application">
  42. <propval name="config_file" type="astring" value="/etc/salt/master"/>
  43. </property_group>
  44. <stability value="Unstable"/>
  45. <template>
  46. <common_name>
  47. <loctext xml:lang="C">Salt Master</loctext>
  48. </common_name>
  49. <documentation>
  50. <doc_link name="SaltStack Documentation"
  51. uri="http://docs.saltstack.com"/>
  52. </documentation>
  53. </template>
  54. </service>
  55. </service_bundle>