|
|
|
@@ -0,0 +1,32 @@ |
|
|
|
<?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='perl/fastcgi' type='service' version='0'> |
|
|
|
<create_default_instance enabled='true'/> |
|
|
|
<single_instance/> |
|
|
|
|
|
|
|
<dependency name='network' grouping='require_all' restart_on='error' type='service'> |
|
|
|
<service_fmri value='svc:/milestone/network:default'/> |
|
|
|
</dependency> |
|
|
|
<dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'> |
|
|
|
<service_fmri value='svc:/system/filesystem/local:default'/> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
<exec_method name='start' type='method' exec='%{app} -l %{address}:%{port} -n %{procs} -p %{pidfile} -e -d' timeout_seconds='60'/> |
|
|
|
<exec_method name='stop' type='method' exec='kill `cat %{pidfile}`' timeout_seconds='60'/> |
|
|
|
|
|
|
|
<property_group name='application' type='application'> |
|
|
|
<propval name='app' type='astring' value='/data/www/open6hosting.com/web/o6h/script/o6h_fastcgi.pl'/> |
|
|
|
<propval name='address' type='astring' value='127.0.0.1'/> |
|
|
|
<propval name='port' type='astring' value='8986'/> |
|
|
|
<propval name='procs' type='astring' value='5'/> |
|
|
|
<propval name='pidfile' type='astring' value='/var/run/o6h_fastcgi.pid'/> |
|
|
|
</property_group> |
|
|
|
|
|
|
|
<template> |
|
|
|
<common_name> |
|
|
|
<loctext xml:lang='C'>Open6Hosting WEBAPP daemon</loctext> |
|
|
|
</common_name> |
|
|
|
</template> |
|
|
|
</service> |
|
|
|
</service_bundle> |