主pipe可以启动uwsgi,但停止uwsgi后,当我尝试再次启动它,我得到这个错误:
2014-03-16 08:38:34,249 DEBG 'app' stderr output: thunder lock: disabled (you can enable it with --thunder-lock) 2014-03-16 08:38:34,249 DEBG 'app' stderr output: probably another instance of uWSGI is running on the same address (127.0.0.1:8001). 2014-03-16 08:38:34,249 DEBG 'app' stderr output: bind(): Address already in use [core/socket.c line 759] 2014-03-16 08:38:34,250 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 33121488 for <Subprocess at 32641104 with name app in state STARTING> (stdout)> 2014-03-16 08:38:34,250 DEBG fd 15 closed, stopped monitoring <POutputDispatcher at 33122208 for <Subprocess at 32641104 with name app in state STARTING> (stderr)> 2014-03-16 08:38:34,250 INFO exited: app (exit status 1; not expected) 2014-03-16 08:38:34,250 DEBG received SIGCLD indicating a child quit 2014-03-16 08:38:35,251 INFO gave up: app entered FATAL state, too many start retries too quickly
它似乎没有正确地停止uwsgi,因为当它试图重新启动它有一个问题。 我的主pipeuwsgiconfiguration如下:
[program:uwsgi] command=/usr/local/bin/uwsgi --ini /etc/conf/uwsgi_$APP.ini user=uwsgi autostart=true autorestart=true stderr_logfile=uwsgi_err.log stdout_logfile=uwsgi_out.log stopsignal=INT
我也试过这与stopignal =退出。 我哪里错了?
您需要为您尝试停止的进程提供uwsgi pidfile: http : //uwsgi-docs.readthedocs.org/en/latest/Options.html#stop