gearmand.xml.in 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0"?>
  2. <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
  3. <service_bundle type="manifest" name="gearman">
  4. <service name="application/database/gearman" type="service" version="1">
  5. <single_instance/>
  6. <dependency name="multi-user-server" grouping="require_all" restart_on="none" type="service">
  7. <service_fmri value="svc:/milestone/multi-user-server" />
  8. </dependency>
  9. <!-- We need to map the name of the authorizations we defined to this service -->
  10. <property_group name="general" type="framework">
  11. <propval name="action_authorization" type="astring"
  12. value="solaris.smf.manage.gearman" />
  13. <propval name="value_authorization" type="astring"
  14. value="solaris.smf.value.gearman" />
  15. </property_group>
  16. <property_group name="gearman" type="application">
  17. <propval name="corepattern" type="astring" value="core.%f.%p" />
  18. </property_group>
  19. <!-- Define the instance and how to start / stop it -->
  20. <instance name="gearman" enabled="false">
  21. <exec_method type="method" name="start" exec="/lib/svc/method/gearmand start" timeout_seconds="30" >
  22. <method_context>
  23. <method_credential user="gearmand" group="gearmand" />
  24. </method_context>
  25. </exec_method>
  26. <exec_method type="method" name="stop" exec="/lib/svc/method/gearmand stop %{restarter/contract}" timeout_seconds="60" >
  27. <method_context>
  28. <method_credential user="gearmand" group="gearmand" />
  29. </method_context>
  30. </exec_method>
  31. </instance>
  32. <stability value="Unstable" />
  33. <template>
  34. <common_name>
  35. <loctext xml:lang="C">Gearman job server</loctext>
  36. </common_name>
  37. <documentation>
  38. <manpage title="gearman" section="1" manpath="@prefix@/share/man" />
  39. </documentation>
  40. </template>
  41. </service>
  42. </service_bundle>