Commit c49cdc57 authored by BERJON Matthieu's avatar BERJON Matthieu

Add of the Supervisor configuration

I created the Supervisor configuration file. At the moment, the
configuration hasn't been tested because of the incompatibilities of
Supervisor with Python 3. It still needs to be resolved.

The configuration has been copied from Rails and adapted to run a Django
application and later on a Redis cache system (commented at the moment).
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent 28e2b935
; supervisor config file
[unix_http_server]
file=/vol/cache/supervisor.sock ; (the path to the socket file)
chmod=0700 ; socket file mode (default 0700)
[supervisord]
logfile=/vol/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
childlogdir=/vol/log/supervisor ; ('AUTO' child log dir, default $TEMP)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///vol/cache/supervisor.sock ; use a unix:// URL for a unix socket
;[program:redis]
;command=/usr/bin/redis-server /etc/redis/redis.conf
;startsecs=10
[program:django]
command=gunicorn allgo.wsgi:application -w 2 -b :4000
startsecs=10
[program:nginx]
command=nginx -g "daemon off;"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment