1
0

salt-api.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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-api">
  7. <service name="network/salt-api" 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:///opt/local/etc/salt/minion'/>
  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-api -c %{config_dir}"
  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="/opt/local/etc/salt/master"/>
  43. <propval name="config_dir" type="astring" value="/opt/local/etc/salt"/>
  44. </property_group>
  45. <stability value="Unstable"/>
  46. <template>
  47. <common_name>
  48. <loctext xml:lang="C">Salt API</loctext>
  49. </common_name>
  50. <documentation>
  51. <doc_link name="SaltStack Documentation"
  52. uri="http://docs.saltstack.com"/>
  53. </documentation>
  54. </template>
  55. </service>
  56. </service_bundle>