Skip to content

Instantly share code, notes, and snippets.

@omgbbqhaxx
Forked from didip/supervisord-example.conf
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omgbbqhaxx/c8ac7da3e3df0f19479a to your computer and use it in GitHub Desktop.
Save omgbbqhaxx/c8ac7da3e3df0f19479a to your computer and use it in GitHub Desktop.
[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/opt/venv/bin/logs/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid ; pidfile location
nodaemon=false ; run supervisord as a daemon
minfds=1024 ; number of startup file descriptors
minprocs=200 ; number of process descriptors
user=root ; default user
childlogdir=/opt/venv/bin/logs ; where child log files will live
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
; This is where you run individual Tornado instances.
; We run four; one per processor core.
; In development, we ran as many as four per core with no issues.
; If you're looking to minimize cpu load, run fewer processes.
; BTW, Tornado processes are single threaded.
; To take advantage of multiple cores, you'll need multiple processes.
[program:hello]
command= python /opt/venv/main.py --port=8888
stderr_logfile = /opt/venv/bin/logs/tornado-stderr.log
stdout_logfile = /opt/venv/bin/logs/tornado-stdout.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment