Blog Archive for February 9, 2012

Ubuntu xorg.conf

February 9, 2012

Recent Ubuntu distributions don't use a physical /etc/X11/xorg.conf file by default - they detect everything at runtime. If you need to set some settings yourself in xorg.conf, this is problematic. To override this behaviour, you need just create a new /etc/X11/xorg.conf and this will be used instead.

To …

celeryd init.d

February 9, 2012

I was having trouble getting celeryd to work started from an init.d script. A sample script is provided by the celery project at https://github.com/ask/celery/blob/master/contrib/generic-init.d/celeryd, and I had the following in /etc/default/celeryd:

CELERYD_CHDIR="/home/tjs/web/bbr/bbr" export DJANGO_SETTINGS_MODULE="settingslive" ENV_PYTHON="/home/tjs/.virtualenvs/bbr/bin/python" CELERYD_MULTI="$ENV_PYTHON $CELERYD_CHDIR/manage.py celeryd_multi" CELERYCTL="$ENV_PYTHON $CELERYD_CHDIR/manage.py celeryctl" CELERYD_OPTS="" CELERYD_LOG_FILE="/var/log/celeryd/%n.log" CELERYD_LOG_LEVEL="DEBUG" CELERYD_PID_FILE="/var/run/celeryd/%n.pid" CELERYD_USER="www-data" CELERYD_GROUP="www-data" …