Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…a restart.
  • Loading branch information...
commit 644d907daf5a2759e0d96c920cf650ee9530db24 1 parent 594106d
@brosner authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.