From bc64baba65d91710ae7449faea4b28f8123d356a Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Fri, 16 Apr 2010 14:01:32 -0400 Subject: [PATCH] Fix example config file. --- examples/gunicorn.conf.py.sample | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/examples/gunicorn.conf.py.sample b/examples/gunicorn.conf.py.sample index db8fbdac..4ee5cf3f 100644 --- a/examples/gunicorn.conf.py.sample +++ b/examples/gunicorn.conf.py.sample @@ -1,21 +1,20 @@ -nd='unix:/tmp/gunicorn.sock', -daemon=True, -debug=False, -logfile='/var/log/gunicorn.log', -loglevel='info', -pidfile='/var/run/gunicorn.pid', -workers=1, -umask=0, +bind='unix:/tmp/gunicorn.sock' +daemon=True +debug=False +logfile='/var/log/gunicorn.log' +loglevel='info' +pidfile='/var/run/gunicorn.pid' +workers=1 +umask=0 # for systems with nobody and no group -user="nobody", -group="nogroup", +user="nobody" +group="nogroup" after_fork=lambda server, worker: server.log.info( - "worker=%s spawned pid=%s" % (worker.id, -str(worker.pid))), + "worker=%s spawned pid=%s" % (worker.id, str(worker.pid))) before_fork=lambda server, worker: server.log.info( - "worker=%s spawning" % worker.id), + "worker=%s spawning" % worker.id) before_exec=lambda server: server.log.info("forked child, reexecuting")