mirror of https://github.com/CIRCL/lookyloo
chg: Better messages if website does not start
parent
9091970ef4
commit
3ec8015e14
|
@ -23,7 +23,11 @@ def main():
|
|||
cwd=website_dir)
|
||||
set_running('website')
|
||||
while True:
|
||||
if shutdown_requested() or p.poll() is not None:
|
||||
if p.poll() is not None:
|
||||
print('gunicorn stopped itself.')
|
||||
break
|
||||
if shutdown_requested():
|
||||
print('"shutdown" key present in the cache database.')
|
||||
break
|
||||
time.sleep(1)
|
||||
except KeyboardInterrupt:
|
||||
|
|
Loading…
Reference in New Issue