Merge branch 'master' into fix-missing-folders-in-script
This commit is contained in:
+8
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user