diff --git a/README.rst b/README.rst index 5cf584be..6123ddd9 100644 --- a/README.rst +++ b/README.rst @@ -24,18 +24,24 @@ Usage $ gunicorn --help Usage: gunicorn [OPTIONS] [APP_MODULE] - Options: - -b BIND, --bind=BIND Adress to listen on. Ex. 127.0.0.1:8000 or - unix:/tmp/gunicorn.sock - --workers=WORKERS Number of workers to spawn. [1] - -p PIDFILE, --pid=PIDFILE - set the background PID FILE - -D, --daemon Run daemonized in the background. - --log-level=LOGLEVEL Log level below which to silence messages. [info] - --log-file=LOGFILE Log to a file. - is stdout. [-] - -d, --debug Debug mode. only 1 worker. - --version show program's version number and exit - -h, --help show this help message and exit + Options: + -b BIND, --bind=BIND Adress to listen on. Ex. 127.0.0.1:8000 or + unix:/tmp/gunicorn.sock + -w, --workers=WORKERS Number of workers to spawn. [none] + -p PIDFILE, --pid=PIDFILE + set the background PID FILE + -D, --daemon Run daemonized in the background. + -m UMASK, --umask=UMASK + Define umask of daemon process + -u USER, --user=USER Change worker user + -g GROUP, --group=GROUP + Change worker group + --log-level=LOGLEVEL Log level below which to silence messages. [info] + --log-file=LOGFILE Log to a file. - is stdout. [-] + -d, --debug Debug mode. only 1 worker. + --version show program's version number and exit + -h, --help show this help message and exit + Example with test app:: diff --git a/gunicorn/main.py b/gunicorn/main.py index ddc226ee..ffc65336 100644 --- a/gunicorn/main.py +++ b/gunicorn/main.py @@ -30,7 +30,7 @@ def options(): return [ op.make_option('-b', '--bind', dest='bind', help='Adress to listen on. Ex. 127.0.0.1:8000 or unix:/tmp/gunicorn.sock'), - op.make_option('--workers', dest='workers', type='int', + op.make_option('-w', '--workers', dest='workers', type='int', help='Number of workers to spawn. [%default]'), op.make_option('-p','--pid', dest='pidfile', help='set the background PID FILE'), diff --git a/gunicorn/management/commands/run_gunicorn.py b/gunicorn/management/commands/run_gunicorn.py index a8b14041..224c2f1d 100644 --- a/gunicorn/management/commands/run_gunicorn.py +++ b/gunicorn/management/commands/run_gunicorn.py @@ -23,7 +23,7 @@ class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--adminmedia', dest='admin_media_path', default='', help='Specifies the directory from which to serve admin media.'), - make_option('--workers', dest='workers', default='1', + make_option('-w', '--workers', dest='workers', default='1', help='Specifies the number of worker processes to use.'), make_option('--pid', dest='pidfile', default='', help='set the background PID file'),