From 40f1c43ccfcecd19664a441fe3eba1585adab91e Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 17 Mar 2010 00:53:57 +0100 Subject: [PATCH] iadd --arbiter option to django run command --- gunicorn/management/commands/run_gunicorn.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gunicorn/management/commands/run_gunicorn.py b/gunicorn/management/commands/run_gunicorn.py index b68f348e..9ad4995f 100644 --- a/gunicorn/management/commands/run_gunicorn.py +++ b/gunicorn/management/commands/run_gunicorn.py @@ -27,6 +27,9 @@ class Command(BaseCommand): help='Gunicorn Config file. [%default]'), make_option('-w', '--workers', dest='workers', help='Specifies the number of worker processes to use.'), + make_option('-a', '--arbiter', dest='arbiter', + help="gunicorn arbiter entry point or module "+ + "[egg:gunicorn#main]"), make_option('--pid', dest='pidfile', help='set the background PID file'), make_option( '--daemon', dest='daemon', action="store_true", @@ -70,7 +73,7 @@ class Command(BaseCommand): try: handler = AdminMediaHandler(WSGIHandler(), admin_media_path) - arbiter = Arbiter(conf.address, conf.workers, handler, + arbiter = conf.arbiter(conf.address, conf.workers, handler, pidfile=conf['pidfile'], config=conf) if conf['daemon']: daemonize()