Ordered guest boot-up and shutdown sequences for SmartOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.6 KiB

  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='export'>
  4. <service name='system/guesthandler' type='service' version='0'>
  5. <create_default_instance enabled='true'/>
  6. <single_instance/>
  7. <dependency name='vmadmd' grouping='require_all' restart_on='none' type='service'>
  8. <service_fmri value='svc:/system/smartdc/vmadmd:default'/>
  9. </dependency>
  10. <exec_method name='start' type='method' exec='%{config/method_prefix}/svc-guesthandler %m' timeout_seconds='0'>
  11. <method_context>
  12. <method_environment>
  13. <envvar name='DELAY' value='30'/>
  14. </method_environment>
  15. </method_context>
  16. </exec_method>
  17. <exec_method name='stop' type='method' exec='%{config/method_prefix}/svc-guesthandler %m' timeout_seconds='0'>
  18. <method_context>
  19. <method_environment>
  20. <envvar name='GRACE_PERIOD' value='300'/>
  21. <envvar name='WAIT_INTERVAL' value='10'/>
  22. </method_environment>
  23. </method_context>
  24. </exec_method>
  25. <property_group name='startd' type='framework'>
  26. <propval name='duration' type='astring' value='transient'/>
  27. </property_group>
  28. <property_group name='config' type='eu.gerczei,guesthandler_configuration'>
  29. <propval name='method_prefix' type='astring' value='/opt/custom/bin'/>
  30. </property_group>
  31. <stability value='Unstable'/>
  32. <template>
  33. <common_name>
  34. <loctext xml:lang='C'>Ordered start-up and shutdown for zones</loctext>
  35. </common_name>
  36. </template>
  37. </service>
  38. </service_bundle>