Skip to content
Browse files

Wait three seconds between stopping and starting the WSGI process in …

…a restart.
  • Loading branch information...
1 parent 594106d commit 644d907daf5a2759e0d96c920cf650ee9530db24 @brosner committed Jul 11, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 bosnowsgi.py
View
2 bosnowsgi.py
@@ -4,6 +4,7 @@
import sys
import yaml
import signal
+import time
from optparse import OptionParser
@@ -199,6 +200,7 @@ def main():
sys.exit("'%s' does not have a pidfile" % name)
pid = open(server.pidfile, "r").read()
server.stop(pid)
+ time.sleep(3) # probably way too much time.
server.start()
else:
sys.exit("unknown command '%s'" % command)

0 comments on commit 644d907

Please sign in to comment.
Something went wrong with that request. Please try again.