Created
March 4, 2015 20:22
-
-
Save srijan/de43ac9ab30e6576de0d to your computer and use it in GitHub Desktop.
Supervisor conf for starting uwsgi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[unix_http_server] | |
file=/var/run/supervisor/supervisor.sock | |
[supervisord] | |
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log) | |
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB) | |
logfile_backups=10 ; (num of main logfile rotation backups;default 10) | |
loglevel=info ; (log level;default info; others: debug,warn,trace) | |
pidfile=/var/run/supervisor/supervisord.pid ; (supervisord pidfile;default supervisord.pid) | |
nodaemon=false ; (start in foreground if true;default false) | |
minfds=1024 ; (min. avail startup file descriptors;default 1024) | |
minprocs=200 ; (min. avail process descriptors;default 200) | |
[rpcinterface:supervisor] | |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | |
[supervisorctl] | |
serverurl=unix:///var/run/supervisor/supervisor.sock | |
history_file=~/.sc_history ; use readline history if available | |
[program:uwsgi_myapp] | |
directory=/usr/local/www/myapp/ | |
command=/usr/local/bin/uwsgi -s /var/run/%(program_name)s%(process_num)d.sock | |
--chmod-socket=666 --need-app --disable-logging --home=venv | |
--wsgi-file wsgi.py --processes 1 --threads 10 | |
stdout_logfile="syslog" | |
stderr_logfile="syslog" | |
startsecs=10 | |
stopsignal=QUIT | |
stopasgroup=true | |
killasgroup=true | |
process_name=%(program_name)s%(process_num)d | |
numprocs=5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment