salt-minion.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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-minion">
  7. <service name="network/salt-minion" type="service" version="1">
  8. <create_default_instance enabled="false"/>
  9. <single_instance/>
  10. <dependency name="network"
  11. grouping="require_all"
  12. restart_on="error"
  13. type="service">
  14. <service_fmri value="svc:/milestone/network:default"/>
  15. </dependency>
  16. <dependency name="filesystem"
  17. grouping="require_all"
  18. restart_on="error"
  19. type="service">
  20. <service_fmri value="svc:/system/filesystem/local"/>
  21. </dependency>
  22. <method_context/>
  23. <exec_method type="method"
  24. name="start"
  25. exec="/usr/sbin/auditconfig -setaudit 0 lo 0,0,localhost 5417 SALT_PREFIX/bin/salt-minion"
  26. timeout_seconds="60">
  27. <method_context>
  28. <method_environment>
  29. <envvar name="PATH" value="/usr/local/sbin:/usr/local/bin:/opt/local/sbin:/opt/local/bin:/usr/sbin:/usr/bin:/sbin:SALT_PREFIX/bin" />
  30. </method_environment>
  31. </method_context>
  32. </exec_method>
  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. <stability value="Unstable"/>
  42. <template>
  43. <common_name>
  44. <loctext xml:lang="C">Salt Minion</loctext>
  45. </common_name>
  46. <documentation>
  47. <doc_link name="SaltStack Documentation"
  48. uri="http://docs.saltstack.com"/>
  49. </documentation>
  50. </template>
  51. </service>
  52. </service_bundle>