From d9752958926518a264efd30eace43438dfde0848 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Sun, 15 Nov 2015 19:34:02 +0000 Subject: [PATCH] py-i2phosts-master: relax daemon umask to 022 I don't remember why it was set to 077 initially, but now I see it causes problems. Exactly, py-i2phosts-builer called from master creates hosts.txt file with 600 permissions, so file is not readable by nginx for example. New umask fixes this problem. --- bin/py-i2phosts-master | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/py-i2phosts-master b/bin/py-i2phosts-master index 7fec7d1..926b65c 100755 --- a/bin/py-i2phosts-master +++ b/bin/py-i2phosts-master @@ -149,7 +149,7 @@ if not args.debug and not args.verbose: # get pid object for daemon pid = pidfile.TimeoutPIDLockFile(config['pid_file'], 10) # create daemon context - d = daemon.DaemonContext(pidfile=pid, umask=077) + d = daemon.DaemonContext(pidfile=pid, umask=022) # write stderr to logfile # FIXME: and how we will deal with log rotation? logfile = open(config['log_file'], 'a') d.stderr = logfile