I've just installed uwsgi
by pip install uwsgi
in a virtual env.
In "ini" file I used:
socket = 127.0.0.1:3000
# no pidfile option
And run uwsgi --ini config.ini
But how to stop this instance of uwsgi?
uwsgi --stop ...
wants a pid file. I can't use an address:
open("127.0.0.1:3000"): No such file or directory [core/io.c line 505]
And if killing - uwsgi just respawns itself.
It is a known feature that you cannot terminate uwsgi with just kill. The second bullet of: http://uwsgi-docs.readthedocs.org/en/latest/ThingsToKnow.html
Similar to the top one answer, in Ubuntu or Debian you can simply do
sudo killall -9 uwsgi
. Though I do want to know if uwsgi gives a way to stop itself.