smartos-guesthandler/guesthandler-disarm.xml

30 rivejä
1.4 KiB
XML

<?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>