Commit d7b852fd authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Add umask inside daemon context

parent 883eb77e
......@@ -967,12 +967,11 @@ if __name__ == "__main__":
logger.warning("Removing stale PID lock file %s", pidfile.path)
pidfile.break_lock()
d = daemon.DaemonContext(pidfile=pidfile,
umask=0022,
stdout=handler.stream,
stderr=handler.stream,
files_preserve=[handler.stream])
d.umask = 0022
try:
d.open()
except (daemon.pidlockfile.AlreadyLocked, LockTimeout):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment