Skip to content

The umask parameter seems does not effect or what wrong with my usage? #2245

Closed
@xiaopeipei123

Description

@xiaopeipei123

I want modify the default logger file right 644 to 640. When i add umask = 0027 to gunicorn configuration file, it seems that does not work. what's wrong with my usage?
below is my usage:
gunicorn.conf
...
reuse_port = True
worker_class = "gevent"
umask = 0027
daemon = True
...
i delete the old log file, and restart the gunicorn server to generate new logs, here is the new files, but the file access right does not what i want.
this is the start command
gunicorn -c "${HOME}/etc/gunicorn.conf" "main:create_app()"

-rw-r--r-- 1 org users 0 Jan 21 15:58 gunicorn-access.log
-rw-r--r-- 1 org users 275 Jan 21 15:58 gunicorn-error.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions