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.
 

29 lines
1.4 KiB

<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
<service name='system/guesthandler-disarm' type='service' version='0'>
<create_default_instance enabled='true'/>
<single_instance/>
<dependency name='fs' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local'/>
</dependency>
<dependent name='zones' grouping='require_all' restart_on='none'>
<!-- we need to have autoboot disabled by the time this service checks -->
<service_fmri value='svc:/system/zones'/>
</dependent>
<exec_method name='start' type='method' exec='%{config/method_prefix}/svc-guesthandler disarm' timeout_seconds='0'/>
<exec_method name='stop' type='method' exec=':true' timeout_seconds='100'/>
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='transient'/>
</property_group>
<property_group name='config' type='eu.gerczei,guesthandler_configuration'>
<propval name='method_prefix' type='astring' value='/opt/custom/bin'/>
</property_group>
<stability value='Unstable'/>
<template>
<common_name>
<loctext xml:lang='C'>Disable auto-booting for all zones</loctext>
</common_name>
</template>
</service>
</service_bundle>