newbie question with daemonize and too many uwsgi processes
Howdy,
I am just learning how to use uwsgi and have a sample django application running under Nginx.
I am running from an Upstart script on Ubuntu. My Upstart script I lifted from the web from Jeremy Bowers:
description "uWSGI server for Project Foo"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
exec /usr/sbin/uwsgi --socket /opt/run/foo.sock\
--chmod-socket --module wsgi_app\
--pythonpath /opt/django-projects/foo/uwsgi\
-p 1
Notice “–p 1” I believe this should give me one process, which in fact it does. I know this from the output of “ps –A |grep uwsgi”
But if I add the flag
--daemonize /opt/log/uwsgi/uwsgi.log
And then run “ps –A|grep uwsgi” I have ten processes running. I assume this a feature, not a bug. So how do I control the number of processes running in daemonize mode?
Thanks,
Danny
_______________________________________________ uWSGI mailing list uWSGI@... http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
RSS Feed