|
|
@ -25,8 +25,6 @@ def sigterm_handler(_signo, _stack_frame):
|
|
|
|
print('Shutdown: Got SIGTERM, DB saved to disk')
|
|
|
|
print('Shutdown: Got SIGTERM, DB saved to disk')
|
|
|
|
raise SystemExit
|
|
|
|
raise SystemExit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
global datastore
|
|
|
|
global datastore
|
|
|
|
global app
|
|
|
|
global app
|
|
|
@ -130,4 +128,3 @@ def main():
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
eventlet.wsgi.server(eventlet.listen((host, int(port))), app)
|
|
|
|
eventlet.wsgi.server(eventlet.listen((host, int(port))), app)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|