Merge branch 'master' into fix-missing-folders-in-script

This commit is contained in:
2019-05-23 14:32:04 +01:00
247 changed files with 436 additions and 291 deletions
+8 -2
View File
@@ -554,10 +554,12 @@ def wsgibase(environ, responder):
http_response, request, environ, ticket)
if not http_response:
return wsgibase(new_environ, responder)
if global_settings.web2py_crontype == 'soft':
cmd_opts = global_settings.cmd_options
newcron.softcron(global_settings.applications_parent,
apps=cmd_opts and cmd_opts.crontabs).start()
apps=cmd_opts and cmd_opts.crontabs)
return http_response.to(responder, env=env)
@@ -783,7 +785,11 @@ class HttpServer(object):
"""
stop cron and the web server
"""
newcron.stopcron()
if global_settings.web2py_crontype == 'soft':
try:
newcron.stopcron()
except:
pass
self.server.stop(stoplogging)
try:
os.unlink(self.pid_filename)