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'>
|
||||
<method_context>
|
||||
<method_environment>
|
||||
<envvar name='DELAY' value='%{config/delay}'/>
|
||||
<envvar name='DELAY' value='30'/>
|
||||
</method_environment>
|
||||
</method_context>
|
||||
</exec_method>
|
||||
|
@ -19,7 +19,6 @@
|
|||
<propval name='duration' type='astring' value='transient'/>
|
||||
</property_group>
|
||||
<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'/>
|
||||
</property_group>
|
||||
<stability value='Unstable'/>
|
||||
|
|
|
@ -73,11 +73,8 @@ case $1 in
|
|||
;;
|
||||
|
||||
*)
|
||||
if smf_present;
|
||||
then
|
||||
exit $SMF_EXIT_ERR_CONFIG;
|
||||
else
|
||||
print
|
||||
exit $SMF_EXIT_ERR_CONFIG
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $SMF_EXIT_NODAEMON
|
||||
|
|
Loading…
Reference in New Issue