WSGI was created as a low-level interface between web servers and web applications or frameworks to promote common ground for portable web application development.
start on runlevel [2345] stop on runlevel [016] respawn pre-start script NUM_PROC=`nproc` NUM_PROC=`expr $NUM_PROC \* 4` end script script exec /usr/local/bin/uwsgi -s ws.sock -M -p $NUM_PROC -b 12288 -C 600 --pythonpath /myproject/ --wsgi-file /myproject/wsgi.py --gid www-data --uid www-data --need-app --stats 127.0.0.1:30001 --log-x-forwarded-for --memory-report --reload-on-rss 1024 --logger syslog:uwsgi-ws -l 1024
end script