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.

30 lines
1.4 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-disarm' type='service' version='0'>
  5. <create_default_instance enabled='true'/>
  6. <single_instance/>
  7. <dependency name='fs' grouping='require_all' restart_on='none' type='service'>
  8. <service_fmri value='svc:/system/filesystem/local'/>
  9. </dependency>
  10. <dependent name='zones' grouping='require_all' restart_on='none'>
  11. <!-- we need to have autoboot disabled by the time this service checks -->
  12. <service_fmri value='svc:/system/zones'/>
  13. </dependent>
  14. <exec_method name='start' type='method' exec='%{config/method_prefix}/svc-guesthandler disarm' timeout_seconds='0'/>
  15. <exec_method name='stop' type='method' exec=':true' timeout_seconds='100'/>
  16. <property_group name='startd' type='framework'>
  17. <propval name='duration' type='astring' value='transient'/>
  18. </property_group>
  19. <property_group name='config' type='eu.gerczei,guesthandler_configuration'>
  20. <propval name='method_prefix' type='astring' value='/opt/custom/bin'/>
  21. </property_group>
  22. <stability value='Unstable'/>
  23. <template>
  24. <common_name>
  25. <loctext xml:lang='C'>Disable auto-booting for all zones</loctext>
  26. </common_name>
  27. </template>
  28. </service>
  29. </service_bundle>