Skip to content

Instantly share code, notes, and snippets.

@sanemat
Created September 17, 2011 21:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanemat/1224407 to your computer and use it in GitHub Desktop.
Save sanemat/1224407 to your computer and use it in GitHub Desktop.
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
[supervisord]
logfile=/tmp/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=/tmp/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:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:master]
command=/Users/sane/work/isucon/isucon/tools/etc/master.sh
process_name=isucon bench master
user=sane
stdout_logfile=/tmp/isucon.master.log
stderr_logfile=/tmp/isucon.master.log
[program:agent]
command=/Users/sane/work/isucon/isucon/tools/etc/agent.sh
process_name=isucon bench agent
user=sane
stdout_logfile=/tmp/isucon.agent.log
stderr_logfile=/tmp/isucon.agent.log
; [program:isucon_perl]
; directory = /Users/sane/work/isucon/isucon/webapp/perl
; command=perl -Mlib=/Users/sane/work/isucon/isucon/webapp/perl/extlib/lib/perl5 /Users/sane/work/isucon/isucon/webapp/perl/extlib/bin/plackup -s Starman -E production --preload-app --disable-keepalive --workers 10 /Users/sane/work/isucon/isucon/webapp/perl/app.psgi
; user=sane
; stdout_logfile=/tmp/isucon.perl.log
; stderr_logfile=/tmp/isucon.perl.log
; [program:isucon_node]
; command=/Users/sane/work/isucon/isucon/webapp/nodejs/etc/app.sh
; process_name=isucon server (nodejs)
; user=sane
; stdout_logfile=/tmp/isucon.nodejs.log
; stderr_logfile=/tmp/isucon.nodejs.log
[program:isucon_ruby]
directory=/Users/sane/work/isucon/isucon/webapp/ruby/
command=/Users/sane/.rvm/rubies/ruby-1.9.2-p290/bin/ruby /Users/sane/.rvm/gems/ruby-1.9.2-p290/bin/bundle exec /Users/sane/.rvm/gems/ruby-1.9.2-p290/bin/rackup -s thin -E production -p 5000
user=sane
stdout_logfile=/tmp/isucon.ruby.log
stderr_logfile=/tmp/isucon.ruby.log
environment=PATH=/Users/sane/.rvm/gems/ruby-1.9.2-p290/bin:/Users/sane/.rvm/rubies/ruby-1.9.2-p290/bin,GEM_HOME=/Users/sane/.rvm/gems/ruby-1.9.2-p290
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment