-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?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='network/gunicorn' type='service' version='0'> | ||
<dependency name='net-physical' grouping='require_all' restart_on='none' type='service'> | ||
<service_fmri value='svc:/network/physical'/> | ||
</dependency> | ||
<dependency name='filesystem' grouping='require_all' restart_on='none' type='service'> | ||
<service_fmri value='svc:/system/filesystem/local'/> | ||
</dependency> | ||
<exec_method name='start' type='method' exec='/opt/local/bin/gunicorn --log-syslog -D -b %{config/listen} -u %{config/user} -g %{config/group} -w %{config/worker} %{config/app}' timeout_seconds='0'/> | ||
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='10'/> | ||
<exec_method name='refresh' type='method' exec=':kill -HUP' timeout_seconds='60'/> | ||
<property_group name='startd' type='framework'> | ||
<propval name='duration' type='astring' value='contract'/> | ||
<propval name='ignore_error' type='astring' value='core,signal'/> | ||
</property_group> | ||
<instance name='default' enabled='false'> | ||
<method_context working_directory='/tmp'> | ||
<method_environment> | ||
<envvar name='PATH' value='/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin:/bin'/> | ||
<envvar name='PYTHONPATH' value='/opt/local/lib/python2.7/site-packages'/> | ||
</method_environment> | ||
</method_context> | ||
<property_group name='config' type='application'> | ||
<propval name='app' type='astring' value='default_wsgi:application'/> | ||
<propval name='group' type='astring' value='www'/> | ||
<propval name='listen' type='astring' value='127.0.0.1:8000'/> | ||
<propval name='user' type='astring' value='www'/> | ||
<propval name='worker' type='integer' value='1'/> | ||
</property_group> | ||
</instance> | ||
<instance name='kumquat' enabled='true'> | ||
<method_context working_directory='/opt/kumquat'> | ||
<method_environment> | ||
<envvar name='PATH' value='/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin:/bin'/> | ||
</method_environment> | ||
</method_context> | ||
<property_group name='config' type='application'> | ||
<propval name='app' type='astring' value='kumquat_web.wsgi:application'/> | ||
<propval name='group' type='astring' value='www'/> | ||
<propval name='listen' type='astring' value='127.0.0.1:9000'/> | ||
<propval name='user' type='astring' value='www'/> | ||
<propval name='worker' type='integer' value='1'/> | ||
</property_group> | ||
</instance> | ||
<stability value='Evolving'/> | ||
<template> | ||
<common_name> | ||
<loctext xml:lang='C'>Gunicorn</loctext> | ||
</common_name> | ||
</template> | ||
</service> | ||
</service_bundle> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters