mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
remove arbiter import from main
This commit is contained in:
parent
0781caadab
commit
451647d5ad
@ -154,8 +154,8 @@ class Arbiter(object):
|
||||
|
||||
self.stop()
|
||||
self.log.info("Shutting down: %s" % self.master_name)
|
||||
#if self.pidfile:
|
||||
# del self.pidfile
|
||||
if self.pidfile:
|
||||
del self.pidfile
|
||||
sys.exit(0)
|
||||
|
||||
def handle_chld(self, sig, frame):
|
||||
|
||||
@ -101,7 +101,6 @@ class Config(object):
|
||||
def arbiter(self):
|
||||
uri = self.conf.get('arbiter', 'egg:gunicorn')
|
||||
arbiter = util.parse_arbiter_uri(uri)
|
||||
print arbiter
|
||||
if hasattr(arbiter, 'setup'):
|
||||
arbiter.setup()
|
||||
return arbiter
|
||||
|
||||
@ -9,7 +9,6 @@ import os
|
||||
import pkg_resources
|
||||
import sys
|
||||
|
||||
from gunicorn.arbiter import Arbiter
|
||||
from gunicorn.config import Config
|
||||
from gunicorn import util, __version__
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user