Ensure that Apache is running with MPM=Prefork

Script wsgi.py checks if Apache is compiled with MPM=Prefork
and if not, it refuses to run.

https://fedorahosted.org/freeipa/ticket/252
This commit is contained in:
Jan Zeleny 2010-11-08 10:58:29 +01:00 committed by Adam Young
parent b67df045be
commit 61e2016ee3

View File

@ -22,4 +22,8 @@ else:
api.log.info('*** PROCESS START ***')
# This is the WSGI callable:
application = api.Backend.session
def application(environ, start_response):
if not environ['wsgi.multithread']:
return api.Backend.session(environ, start_response)
else:
api.log.error("IPA does not work with the threaded MPM, use the pre-fork MPM")