Dear Chefs,
I am using the application_python cookbook to set up the
readthedocs.org application.
I need the services to run with a number of special environment variables
i have this in my configuration for the rtfd-celeryd service file
/etc/supervisor
user=docs
environment=HOME='/home/docs',USER='docs',PIP_DOWNLOAD_CACHE='/tmp/pip',DJANGO_SETTINGS_MODULE='settings',PYTHONPATH="$PYTHONPATH:/opt/rtfd/"
unfortunately, supervisord doesn't seem to pick them up and persists
w/ the env vars from the root user
here is a dump of the environment variables from within my celery service
(Pdb) environment
{'_': '/usr/bin/sudo', '_MP_FORK_LOGFILE_': '', 'CELERY_LOG_REDIRECT':
'1', 'LOGNAME': 'root', 'USER': 'root', 'PATH':
'/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin',
'HOME': '/home/ubuntu', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm',
'SHELL': '/bin/bash', 'TZ': 'America/Chicago', '_MP_FORK_LOGFORMAT_':
'[%(asctime)s: %(levelname)s/%(processName)s] %(message)s', 'SHLVL':
'1', 'SUPERVISOR_ENABLED': '1', 'CELERY_LOG_FILE': '',
'DJANGO_PROJECT_DIR':
'/opt/rtfd/releases/39376186d93dd861e091b68ef0031984d84e979a/readthedocs',
'SUDO_USER': 'ubuntu', 'USERNAME': 'root', 'READTHEDOCS': 'True',
'SUDO_UID': '1000', 'SUPERVISOR_PROCESS_NAME': 'rtfd-celeryd',
'SUPERVISOR_SERVER_URL': 'unix:///var/run/supervisor.sock', 'LC_ALL':
'C', 'CELERY_LOG_REDIRECT_LEVEL': 'WARNING', 'SUDO_COMMAND':
'/usr/bin/chef-solo --config /tmp/kitchen-chef-solo/solo.rb
--json-attributes /tmp/kitchen-chef-solo/dna.json --log_level info',
'SUDO_GID': '1000', 'CELERY_LOADER': 'djcelery.loaders.DjangoLoader',
'SSH_TTY': '/dev/pts/0', 'CELERY_LOG_LEVEL': '30', 'PWD': '/',
'_MP_FORK_LOGLEVEL_': '30', 'MAIL': '/var/mail/ubuntu',
'SUPERVISOR_GROUP_NAME': 'rtfd-celeryd'}
anyone have any advice here? thanks in advance
the application_python cookboook has been great so far and would hate
to have to shortcircuit it just because of the supervisord issues
Archive powered by MHonArc 2.6.16.