How to stop uwsgi when no pidfile in config?

原文: how-to-stop-uwsgi-when-no-pidfile-in-config

Q:

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.

A:

$ps ax | grep uwsgi
15005 pts/4    S      0:00 /ve/path/bin/uwsgi --ini config.ini
15006 pts/4    S      0:00 /ve/path/bin/uwsgi --ini config.ini
15007 pts/4    S      0:00 /ve/path/bin/uwsgi --ini config.ini
 
$killall -s INT /ve/path/bin/uwsgi
posted @ 2015-08-28 14:32  小麦粉  阅读(494)  评论(0编辑  收藏  举报