Skip to content

Instantly share code, notes, and snippets.

@webignition
Created September 17, 2014 14:17
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 webignition/f72cfee12392664cfdc6 to your computer and use it in GitHub Desktop.
Save webignition/f72cfee12392664cfdc6 to your computer and use it in GitHub Desktop.
Simply Testable supervisord configuration
[unix_http_server]
file=/var/run/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=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=/var/log/supervisord/ ; where child log files will live
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
[program:hydrogen_worker_phpresque_tasks]
command = /usr/bin/php5 /home/simplytestable/www/hydrogen.worker.simplytestable.com/vendor/bcc/resque-bundle/BCC/ResqueBundle/bin/resque
user = simplytestable
numprocs=2
process_name = %(program_name)s-%(process_num)s
environment = APP_INCLUDE='/home/simplytestable/www/hydrogen.worker.simplytestable.com/vendor/autoload.php',VERBOSE='1',QUEUE='task-report-completion,task-perform',COUNT=1,PREFIX='worker-hydrogen'
stdout_logfile=/home/simplytestable/www/hydrogen.worker.simplytestable.com/app/logs/resque-stdout.log
stderr_logfile=/home/simplytestable/www/hydrogen.worker.simplytestable.com/app/logs/resque-stderr.log
stopsignal=QUIT
[program:lithium_worker_phpresque_tasks]
command = /usr/bin/php5 /home/simplytestable/www/lithium.worker.simplytestable.com/vendor/bcc/resque-bundle/BCC/ResqueBundle/bin/resque
user = simplytestable
numprocs=2
process_name = %(program_name)s-%(process_num)s
environment = APP_INCLUDE='/home/simplytestable/www/lithium.worker.simplytestable.com/vendor/autoload.php',VERBOSE='1',QUEUE='task-report-completion,task-perform',COUNT=1,PREFIX='worker-lithium'
stdout_logfile=/home/simplytestable/www/lithium.worker.simplytestable.com/app/logs/resque-stdout.log
stderr_logfile=/home/simplytestable/www/lithium.worker.simplytestable.com/app/logs/resque-stderr.log
stopsignal=QUIT
[program:helium_worker_phpresque_tasks]
command = /usr/bin/php5 /home/simplytestable/www/helium.worker.simplytestable.com/vendor/bcc/resque-bundle/BCC/ResqueBundle/bin/resque
user = simplytestable
numprocs=2
process_name = %(program_name)s-%(process_num)s
environment = APP_INCLUDE='/home/simplytestable/www/helium.worker.simplytestable.com/vendor/autoload.php',VERBOSE='1',QUEUE='task-report-completion,task-perform',COUNT=1,PREFIX='worker-helium'
stdout_logfile=/home/simplytestable/www/helium.worker.simplytestable.com/app/logs/resque-stdout.log
stderr_logfile=/home/simplytestable/www/helium.worker.simplytestable.com/app/logs/resque-stderr.log
stopsignal=QUIT
[program:beryllium_worker_phpresque_tasks]
command = /usr/bin/php5 /home/simplytestable/www/beryllium.worker.simplytestable.com/vendor/bcc/resque-bundle/BCC/ResqueBundle/bin/resque
user = simplytestable
numprocs=2
process_name = %(program_name)s-%(process_num)s
environment = APP_INCLUDE='/home/simplytestable/www/beryllium.worker.simplytestable.com/vendor/autoload.php',VERBOSE='1',QUEUE='task-report-completion,task-perform',COUNT=1,PREFIX='worker-beryllium'
stdout_logfile=/home/simplytestable/www/beryllium.worker.simplytestable.com/app/logs/resque-stdout.log
stderr_logfile=/home/simplytestable/www/beryllium.worker.simplytestable.com/app/logs/resque-stderr.log
stopsignal=QUIT
[program:boron_worker_phpresque_tasks]
command = /usr/bin/php5 /home/simplytestable/www/boron.worker.simplytestable.com/vendor/bcc/resque-bundle/BCC/ResqueBundle/bin/resque
user = simplytestable
numprocs=2
process_name = %(program_name)s-%(process_num)s
environment = APP_INCLUDE='/home/simplytestable/www/boron.worker.simplytestable.com/vendor/autoload.php',VERBOSE='1',QUEUE='task-report-completion,task-perform',COUNT=1,PREFIX='worker-boron'
stdout_logfile=/home/simplytestable/www/boron.worker.simplytestable.com/app/logs/resque-stdout.log
stderr_logfile=/home/simplytestable/www/boron.worker.simplytestable.com/app/logs/resque-stderr.log
stopsignal=QUIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment