Skip to content

Instantly share code, notes, and snippets.

@ecarreras
Last active December 28, 2015 20:49
Show Gist options
  • Save ecarreras/7560421 to your computer and use it in GitHub Desktop.
Save ecarreras/7560421 to your computer and use it in GitHub Desktop.
[program:mongodb]
directory=%(VIRTUAL_ENV)s
command=%(VIRTUAL_ENV)s/bin/mongod --dbpath=%(VIRTUAL_ENV)s/gisce-erp/data/db
autostart=true
autorestart=true
redirect_stderr=true
[program:redis]
directory=%(VIRTUAL_ENV)s
command=%(VIRTUAL_ENV)s/bin/redis-server --bind 127.0.0.1
autostart=true
autorestart=true
startretries=3
redirect_stderr=true
[unix_http_server]
file=%(VIRTUAL_ENV)s/var/run/supervisor.sock ; (the path to the socket file)
[inet_http_server] ; inet (TCP) server disabled by default
port=127.0.0.1:9001 ; (ip_address:port specifier, *:port for all iface)
[supervisord]
logfile=%(VIRTUAL_ENV)s/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=%(VIRTUAL_ENV)s/var/run/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://%(VIRTUAL_ENV)s/tmp/supervisor.sock ; use a unix:// URL for a unix socket
[include]
files = supervisor/*.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment