デーモンmod_wsgiの再起動

私はそれを理解するためにそれを長い間延期し、Apache全体もそうしました:)

 @never_cache def restart(request): '''   ''' if request.META['mod_wsgi.process_group'] != '': import signal, os os.kill(os.getpid(), signal.SIGINT) ret = 'restarted' else: ret = 'not find porcess_group' return HttpResponse(ret, mimetype='text/plain') 


UP: yourfile.wsgiをタッチします


Source: https://habr.com/ru/post/J56029/


All Articles