[uwsgi] master = true logto = /var/log/uwsgi-%n.log die-on-term = true # /var/run/nginx.pid attach-daemon = exec /usr/sbin/nginx -g 'daemon off;' -c /etc/nginx/nginx.conf # smart-attach-daemon = pidfile cmd... # attach-daemon2 = cmd=my_daemon.sh,pidfile=/tmp/my.pid,uid=33,gid=33,stopsignal=3