Hi, I used to kill all uwsgi processes and then execute uwsgi --ini django.ini to start uwsgi, however, I recently found uwsgi has its own gracefully reloading methods. they are:
uwsgi --touch-reload <file> or uwsgi --reload <pid_file> or import uwsgi uwsgi.reload() method of touch reload: I added touch-reload = ./uwsgi.touch in django.ini. After starting uwsgi, I touch uwsgi.touch, then I found all worker processes in a defunct status which can totally no way to handle any requests. I tried the second way in the following way: I added "reload=./uwsgi_reload.pid" in django.ini. after restarting uwsgi, then grepped all worker ids and saved them to uwsgi_reload.pid. I then tried to start uwsgi again as "uwsgi --ini django.ini", I found no effect at all. I don't know how to import uwsgi and no document found either. Thanks for your helps. -- *Samuel*
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
