added convenience property 'config/method_prefix' defaulting to '/opt/custom/bin' to both services
This commit is contained in:
parent
711946cb72
commit
85ed1160fd
|
@ -10,11 +10,14 @@
|
||||||
<dependent name='zones' grouping='require_all' restart_on='none'>
|
<dependent name='zones' grouping='require_all' restart_on='none'>
|
||||||
<service_fmri value='svc:/system/zones'/>
|
<service_fmri value='svc:/system/zones'/>
|
||||||
</dependent>
|
</dependent>
|
||||||
<exec_method name='start' type='method' exec='/opt/custom/bin/svc-guesthandler disarm' timeout_seconds='0'/>
|
<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'/>
|
<exec_method name='stop' type='method' exec=':true' timeout_seconds='100'/>
|
||||||
<property_group name='startd' type='framework'>
|
<property_group name='startd' type='framework'>
|
||||||
<propval name='duration' type='astring' value='transient'/>
|
<propval name='duration' type='astring' value='transient'/>
|
||||||
</property_group>
|
</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'/>
|
<stability value='Unstable'/>
|
||||||
<template>
|
<template>
|
||||||
<common_name>
|
<common_name>
|
||||||
|
|
|
@ -7,19 +7,20 @@
|
||||||
<dependency name='vmadmd' grouping='require_all' restart_on='none' type='service'>
|
<dependency name='vmadmd' grouping='require_all' restart_on='none' type='service'>
|
||||||
<service_fmri value='svc:/system/smartdc/vmadmd:default'/>
|
<service_fmri value='svc:/system/smartdc/vmadmd:default'/>
|
||||||
</dependency>
|
</dependency>
|
||||||
<exec_method name='start' type='method' exec='/opt/custom/bin/svc-guesthandler %m' timeout_seconds='0'>
|
<exec_method name='start' type='method' exec='%{config/method_prefix}/svc-guesthandler %m' timeout_seconds='0'>
|
||||||
<method_context>
|
<method_context>
|
||||||
<method_environment>
|
<method_environment>
|
||||||
<envvar name='DELAY' value='%{config/delay}'/>
|
<envvar name='DELAY' value='%{config/delay}'/>
|
||||||
</method_environment>
|
</method_environment>
|
||||||
</method_context>
|
</method_context>
|
||||||
</exec_method>
|
</exec_method>
|
||||||
<exec_method name='stop' type='method' exec='/opt/custom/bin/svc-guesthandler %m' timeout_seconds='0'/>
|
<exec_method name='stop' type='method' exec='%{config/method_prefix}/svc-guesthandler %m' timeout_seconds='0'/>
|
||||||
<property_group name='startd' type='framework'>
|
<property_group name='startd' type='framework'>
|
||||||
<propval name='duration' type='astring' value='transient'/>
|
<propval name='duration' type='astring' value='transient'/>
|
||||||
</property_group>
|
</property_group>
|
||||||
<property_group name='config' type='eu.gerczei,guesthandler_configuration'>
|
<property_group name='config' type='eu.gerczei,guesthandler_configuration'>
|
||||||
<propval name='delay' type='integer' value='30'/>
|
<propval name='delay' type='integer' value='30'/>
|
||||||
|
<propval name='method_prefix' type='astring' value='/opt/custom/bin'/>
|
||||||
</property_group>
|
</property_group>
|
||||||
<stability value='Unstable'/>
|
<stability value='Unstable'/>
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue