Skip to content

Instantly share code, notes, and snippets.

@jezdez
Forked from yashh/gist:278347
Created January 15, 2010 19:54
Show Gist options
  • Save jezdez/278358 to your computer and use it in GitHub Desktop.
Save jezdez/278358 to your computer and use it in GitHub Desktop.
[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=info ; 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=/var/log/supervisord/ ; where child log files will live
; I dont need a rpc interface but just retaining defaults.
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
; Making sure celery workers are running.
; Running them as user yashh
[program:celery]
command=/home/yashh/myproject/manage.py celeryd
directory=/home/yashh/myproject
user=yashh
autostart=true
autorestart=true
startsecs=10
priority=998
[program:redis]
priority=10
directory=/usr/local/bin
command=/usr/local/bin/redis-server /usr/local/bin/redis.conf
user=root
redirect_stderr=true
; Need to bring nginx, apache, mysql into supervisor as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment