Permalink
Browse files

Setup process environments after daemonizing.

  • Loading branch information...
1 parent 146d02a commit 2b7447b1c303931e23a99902e869086cfc50f39a @brosner committed Jul 1, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 bosnowsgi.py
View
6 bosnowsgi.py
@@ -28,16 +28,16 @@ def start(self):
"""
Starts the WSGI server.
"""
- # setup the process environment
- for var, value in self.env.items():
- os.environ[var] = value
server = CherryPyWSGIServer((self.host, self.port), self.dispatcher)
server.environ.update(self.wsgi_env)
if self.daemonize:
daemonize()
if self.pidfile:
print "writing pid (%s)" % self.pidfile
writepid(self.pidfile)
+ # setup the process environment
+ for var, value in self.env.items():
+ os.environ[var] = value
try:
server.start()
except KeyboardInterrupt:

0 comments on commit 2b7447b

Please sign in to comment.