| 
					
				 | 
			
			
				@@ -102,6 +102,45 @@ This is an example configuration for those using `django-celery`:: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     # Name of the projects settings module. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     export DJANGO_SETTINGS_MODULE="settings" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+.. _generic-initd-celeryd-django-with-env-example: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+Example Django configuration Using Virtualenv 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+In case you are using virtualenv, you should add the path to your  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+environment's python interpreter:: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # Name of nodes to start, here we have a single node 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    CELERYD_NODES="w1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # or we could have three nodes: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    #CELERYD_NODES="w1 w2 w3" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # Where to chdir at start. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    CELERYD_CHDIR="/opt/Myproject/" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # Python interpreter from environment. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ENV_PYTHON="$CELERYD_CHDIR/env/bin/python" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # How to call "manage.py celeryd_multi" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    CELERYD_MULTI="$ENV_PYTHON $CELERYD_CHDIR/manage.py celeryd_multi" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # Extra arguments to celeryd 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    CELERYD_OPTS="--time-limit=300 --concurrency=8" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # Name of the celery config module. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    CELERY_CONFIG_MODULE="celeryconfig" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # %n will be replaced with the nodename. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    CELERYD_LOG_FILE="/var/log/celery/%n.log" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    CELERYD_PID_FILE="/var/run/celery/%n.pid" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # Workers should run as an unprivileged user. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    CELERYD_USER="celery" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    CELERYD_GROUP="celery" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # Name of the projects settings module. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    export DJANGO_SETTINGS_MODULE="settings" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 .. _generic-initd-celeryd-options: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 Available options 
			 |