From 345f92d71d85d3d3ec9ec43f02c60b1916a5cc98 Mon Sep 17 00:00:00 2001 From: bobcall Date: Thu, 31 Oct 2013 08:23:11 -0400 Subject: [PATCH] fixed fabric supervisord.conf to use absolute paths --- confs/beta/supervisord.conf | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/confs/beta/supervisord.conf b/confs/beta/supervisord.conf index 09ee3c0..ed54cb7 100644 --- a/confs/beta/supervisord.conf +++ b/confs/beta/supervisord.conf @@ -1,40 +1,32 @@ [supervisord] -logfile = var/log/supervisord.log +logfile = /var/www/karmaworld/var/log/supervisord.log logfile_maxbytes = 10MB logfile_backups = 5 loglevel = info -pidfile = var/run/supervisord.pid +pidfile = /var/www/karmaworld/var/run/supervisord.pid [supervisorctl] -serverurl = unix://var/run/supervisor.sock +serverurl = unix:///var/www/karmaworld/var/run/supervisor.sock [unix_http_server] -file = var/run/supervisor.sock +file = /var/www/karmaworld/var/run/supervisor.sock chmod = 0777 [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [program:gunicorn] -environment = DJANGO_SETTINGS_MODULE=karmaworld.settings.stag -command = gunicorn -c confs/prod/gunicorn.conf karmaworld.wsgi:application +command=/var/www/karmaworld/manage.py run_gunicorn -c confs/prod/gunicorn.conf autostart = true autorestart = true redirect_stderr = true stopsignal = QUIT [program:celeryd] -environment = DJANGO_SETTINGS_MODULE=karmaworld.settings.stag -command = python manage.py celery worker --app=karmaworld.celery.config -l info +command=/var/www/karmaworld/manage.py celery worker --pidfile=/var/www/karmaworld/var/run/celeryd.pid -l info autorestart = true redirect_stderr = true -stdout_logfile = var/log/celeryd.log +stdout_logfile=/var/www/karmaworld/var/log/celeryd.log priority = 2 +stopsignal = QUIT -[program:celerybeat] -environment = DJANGO_SETTINGS_MODULE=karmaworld.settings.stag -command = python manage.py celery beat --app=karmaworld.celery.config --pidfile=var/run/celerybeat.pid -s var/run/celerybeat-schedule -l info -autorestart = true -redirect_stderr = true -stdout_logfile = var/log/celerybeat.log -priority = 3 -- 2.25.1