This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

startup gunicorn as service
====
Add python file as service in /etc/init.d/

example: /etc/init.d/myproj

#!/usr/local/bin/python


import sys, os

from gunicorn_service import ServiceSetting, gunicorn_service

#
# work dir setting in /home/project/myproj.py
# and work dir contains wsgi as startup module
#
p = ServiceSetting( config="/home/project/myproj.py"
name=os.path.basename(__file__),
exe="/usr/local/bin/gunicorn" )


gunicorn_service( p )


myproj.py
settings = "Game.settings.local"
bind = "0.0.0.0:55555"
backlog = 512
user = "root"
workers = 1
worker_connections = 2048
daemon = True
max_requests = 40000
chdir = "/hoem/Server/Game"
worker_class = "gevent"
access_logfile = "/var/log/access.log"
error_logfile = "/var/log/error.log"




use service start| stop | stat, and try chkconfig myproj on


use one config to startup standalone or startup as a service..



Fix.. start with pid, and restart..
Release History

Release History

0.0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
gunicorn-service-0.0.3.zip (5.7 kB) Copy SHA256 Checksum SHA256 Source Jul 11, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting