mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
set permissions of the pidfile so other user can read it and use it.
This commit is contained in:
parent
53ec6b02a5
commit
95520d4728
@ -42,6 +42,9 @@ class Pidfile(object):
|
|||||||
else:
|
else:
|
||||||
self.fname = fname
|
self.fname = fname
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
|
|
||||||
|
# set permissions to -rw-r--r--
|
||||||
|
os.chmod(self.fname, 420)
|
||||||
|
|
||||||
def rename(self, path):
|
def rename(self, path):
|
||||||
self.unlink()
|
self.unlink()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user