fixed broken method script plus removed property 'config/delay' since SMF does not do token expansion anywhere outside 'exec'
This commit is contained in:
parent
85ed1160fd
commit
0b291a37cf
|
@ -10,7 +10,7 @@
|
||||||
<exec_method name='start' type='method' exec='%{config/method_prefix}/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='30'/>
|
||||||
</method_environment>
|
</method_environment>
|
||||||
</method_context>
|
</method_context>
|
||||||
</exec_method>
|
</exec_method>
|
||||||
|
@ -19,7 +19,6 @@
|
||||||
<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='method_prefix' type='astring' value='/opt/custom/bin'/>
|
<propval name='method_prefix' type='astring' value='/opt/custom/bin'/>
|
||||||
</property_group>
|
</property_group>
|
||||||
<stability value='Unstable'/>
|
<stability value='Unstable'/>
|
||||||
|
|
|
@ -73,11 +73,8 @@ case $1 in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
if smf_present;
|
exit $SMF_EXIT_ERR_CONFIG
|
||||||
then
|
;;
|
||||||
exit $SMF_EXIT_ERR_CONFIG;
|
|
||||||
else
|
|
||||||
print
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit $SMF_EXIT_NODAEMON
|
exit $SMF_EXIT_NODAEMON
|
||||||
|
|
Loading…
Reference in New Issue