From d92d62412f90606ac511df360d96c7b312f505da Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Wed, 29 May 2013 14:05:41 -0400 Subject: [PATCH] [manual] Use humbug-deployments/current as the CWD for supervisor processes Some of our code uses the CWD, so we have to set it. The config file needs to be copied over. (imported from commit cec991ccbffddf7ea4d1ec8471377221ddd7c669) --- .../modules/humbug/files/supervisord/conf.d/humbug.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/puppet/modules/humbug/files/supervisord/conf.d/humbug.conf b/servers/puppet/modules/humbug/files/supervisord/conf.d/humbug.conf index 25b6fa5cb8..240b79f858 100644 --- a/servers/puppet/modules/humbug/files/supervisord/conf.d/humbug.conf +++ b/servers/puppet/modules/humbug/files/supervisord/conf.d/humbug.conf @@ -37,6 +37,7 @@ stderr_logfile_backups=10 ; # of stderr logfile backups (default 10) ;stderr_events_enabled=false ; emit events on stderr writes (default false) ;environment=A=1,B=2 ; process environment additions (def no adds) ;serverurl=AUTO ; override serverurl computation (childutils) +directory=/home/humbug/humbug-deployments/current/ socket=unix:///home/humbug/humbug-deployments/fastcgi-socket socket_owner=humbug:humbug socket_mode=0700 @@ -51,6 +52,7 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10) user=humbug ; setuid to this UNIX account to run the program redirect_stderr=true ; redirect proc stderr to stdout (default false) stdout_logfile=/var/log/humbug/tornado.log ; stdout log path, NONE for none; default AUTO +directory=/home/humbug/humbug-deployments/current/ [program:humbug-events-user-activity] command=python /home/humbug/humbug-deployments/current/manage.py process_user_activity @@ -62,6 +64,7 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10) user=humbug ; setuid to this UNIX account to run the program redirect_stderr=true ; redirect proc stderr to stdout (default false) stdout_logfile=/var/log/humbug/events-user-activity.log ; stdout log path, NONE for none; default AUTO +directory=/home/humbug/humbug-deployments/current/ [program:humbug-events-subscribe-new-users] command=python /home/humbug/humbug-deployments/current/manage.py subscribe_new_users @@ -73,6 +76,7 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10) user=humbug ; setuid to this UNIX account to run the program redirect_stderr=true ; redirect proc stderr to stdout (default false) stdout_logfile=/var/log/humbug/events-subscribe-new-users.log ; stdout log path, NONE for none; default AUTO +directory=/home/humbug/humbug-deployments/current/ [program:humbug-events-confirmation-emails] command=python /home/humbug/humbug-deployments/current/manage.py send_confirmation_emails @@ -84,6 +88,7 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10) user=humbug ; setuid to this UNIX account to run the program redirect_stderr=true ; redirect proc stderr to stdout (default false) stdout_logfile=/var/log/humbug/events-confirmation-emails.log ; stdout log path, NONE for none; default AUTO +directory=/home/humbug/humbug-deployments/current/ [program:humbug-events-missedmessage_reminders] command=python /home/humbug/humbug-deployments/current/manage.py send_missedmessage_reminders @@ -95,6 +100,7 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10) user=humbug ; setuid to this UNIX account to run the program redirect_stderr=true ; redirect proc stderr to stdout (default false) stdout_logfile=/var/log/humbug/events-missedmessage_reminders.log ; stdout log path, NONE for none; default AUTO +directory=/home/humbug/humbug-deployments/current/ ; The below sample group section shows all possible group values, ; create one or more 'real' group: sections to create "heterogeneous"