salt-minion.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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="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/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. <exec_method type="method"
  29. name="start"
  30. exec="/opt/local/bin/salt-minion -c %{config_dir}"
  31. timeout_seconds="60">
  32. <method_context>
  33. <method_environment>
  34. <envvar name="PATH"
  35. value="/usr/local/sbin:/usr/local/bin:/opt/local/sbin:/opt/local/bin:/usr/sbin:/usr/bin:/sbin"/>
  36. </method_environment>
  37. </method_context>
  38. </exec_method>
  39. <exec_method type="method"
  40. name="stop"
  41. exec=":kill"
  42. timeout_seconds="60"/>
  43. <property_group name="startd" type="framework">
  44. <propval name="duration" type="astring" value="child"/>
  45. <propval name="ignore_error" type="astring" value="core,signal"/>
  46. </property_group>
  47. <property_group name="application" type="application">
  48. <propval name="config_file" type="astring" value="/opt/local/etc/salt/minion"/>
  49. <propval name="config_dir" type="astring" value="/opt/local/etc/salt"/>
  50. </property_group>
  51. <stability value="Unstable"/>
  52. <template>
  53. <common_name>
  54. <loctext xml:lang="C">Salt Minion</loctext>
  55. </common_name>
  56. <documentation>
  57. <doc_link name="SaltStack Documentation"
  58. uri="http://docs.saltstack.com"/>
  59. </documentation>
  60. </template>
  61. </service>
  62. </service_bundle>