Fixed #14398 -- Changed runfcgi command to interpret the umask option argument as an octal value.
Thanks petteyg for report and aptiko for help with the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e716a71bad
commit
0b39bf02b9
|
@ -27,22 +27,22 @@ FASTCGI_HELP = r"""
|
||||||
|
|
||||||
Optional Fcgi settings: (setting=value)
|
Optional Fcgi settings: (setting=value)
|
||||||
protocol=PROTOCOL fcgi, scgi, ajp, ... (default fcgi)
|
protocol=PROTOCOL fcgi, scgi, ajp, ... (default fcgi)
|
||||||
host=HOSTNAME hostname to listen on..
|
host=HOSTNAME hostname to listen on.
|
||||||
port=PORTNUM port to listen on.
|
port=PORTNUM port to listen on.
|
||||||
socket=FILE UNIX socket to listen on.
|
socket=FILE UNIX socket to listen on.
|
||||||
method=IMPL prefork or threaded (default prefork)
|
method=IMPL prefork or threaded (default prefork).
|
||||||
maxrequests=NUMBER number of requests a child handles before it is
|
maxrequests=NUMBER number of requests a child handles before it is
|
||||||
killed and a new child is forked (0 = no limit).
|
killed and a new child is forked (0 = no limit).
|
||||||
maxspare=NUMBER max number of spare processes / threads
|
maxspare=NUMBER max number of spare processes / threads.
|
||||||
minspare=NUMBER min number of spare processes / threads.
|
minspare=NUMBER min number of spare processes / threads.
|
||||||
maxchildren=NUMBER hard limit number of processes / threads
|
maxchildren=NUMBER hard limit number of processes / threads.
|
||||||
daemonize=BOOL whether to detach from terminal.
|
daemonize=BOOL whether to detach from terminal.
|
||||||
pidfile=FILE write the spawned process-id to this file.
|
pidfile=FILE write the spawned process-id to this file.
|
||||||
workdir=DIRECTORY change to this directory when daemonizing.
|
workdir=DIRECTORY change to this directory when daemonizing.
|
||||||
debug=BOOL set to true to enable flup tracebacks
|
debug=BOOL set to true to enable flup tracebacks.
|
||||||
outlog=FILE write stdout to this file.
|
outlog=FILE write stdout to this file.
|
||||||
errlog=FILE write stderr to this file.
|
errlog=FILE write stderr to this file.
|
||||||
umask=UMASK umask to use when daemonizing (default 022).
|
umask=UMASK umask to use when daemonizing, in octal notation (default 022).
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
Run a "standard" fastcgi process on a file-descriptor
|
Run a "standard" fastcgi process on a file-descriptor
|
||||||
|
@ -166,7 +166,7 @@ def runfastcgi(argset=[], **kwargs):
|
||||||
if options['errlog']:
|
if options['errlog']:
|
||||||
daemon_kwargs['err_log'] = options['errlog']
|
daemon_kwargs['err_log'] = options['errlog']
|
||||||
if options['umask']:
|
if options['umask']:
|
||||||
daemon_kwargs['umask'] = int(options['umask'])
|
daemon_kwargs['umask'] = int(options['umask'], 8)
|
||||||
|
|
||||||
if daemonize:
|
if daemonize:
|
||||||
from django.utils.daemonize import become_daemon
|
from django.utils.daemonize import become_daemon
|
||||||
|
|
Loading…
Reference in New Issue