--- a/etwist/server.py Wed Jan 05 15:32:37 2011 +0100
+++ b/etwist/server.py Wed Jan 05 17:47:16 2011 +0100
@@ -415,7 +415,7 @@
"commands (e.g : 'net start my_instance)'")
from logilab.common.daemon import daemonize
LOGGER.info('instance started in the background on %s', root_resource.base_url)
- whichproc = daemonize(config['pid-file'])
+ whichproc = daemonize(config['pid-file'], umask=config['umask'])
if whichproc: # 1 = orig process, 2 = first fork, None = second fork (eg daemon process)
return whichproc # parent process
root_resource.init_publisher() # before changing uid