unbit / uwsgi-docs

Official uWSGI docs, examples, tutorials, tips and tricks
MIT License
639 stars 346 forks source link

Django tutorial : suggested /etc/rc.local conf breaks things #233

Closed michelbl closed 8 years ago

michelbl commented 9 years ago

In https://github.com/unbit/uwsgi-docs/blob/master/tutorials/Django_and_nginx.rst, paragraph "Make uWSGI startup when the system boots", it is suggested to add the line "/usr/local/bin/uwsgi --emperor /etc/uwsgi/vassals --uid www-data --gid www-data" to /etc/rc.local. However this command never returns and every init script coming after /etc/init.d/rc.local is never executed. I suggest to add "/usr/local/bin/uwsgi --emperor /etc/uwsgi/vassals --uid www-data --gid www-data &" instead.

akx commented 9 years ago

Or --daemonize /var/log/uwsgi-emperor.log to actually capture logs too :)

michelbl commented 9 years ago

That's much better indeed !

xrmx commented 8 years ago

@michelbl , @akx care to cook a patch?

akx commented 8 years ago

Cooked & submitted!