I have two suggestions for making it a bit easier to setup the vassals:
1. Make /var/log/uwsgi/ writable/owned by www-data so the vassals can
write a log file in there. Or perhaps add /var/log/uwsgi/vassals
writable/owned by www-data.
2. Make sure /run/uwsgi/ or /run/uwsgi-emperor/ is created and
writable by www-data so there is a place to put the vassal socket
files.
I don't know if there's an official way to do this, but something
along this works for me
/bin/mkdir -p /run/uwsgi
/bin/chown www-data:www-data /run/uwsgi
For the record, I'm using a template like the following and just
symlinking it for the various webapps I deploy (I have nginx set up in
front):
[uwsgi]
chdir = /home/django/%n
touch-reload = /home/django/%n/%n/wsgi.py
module = %n.wsgi
socket = /run/uwsgi/%n.sock
master = true
logto = /var/log/uwsgi/vassals/%n.log
Ole