houmie

Untitled

Jan 29th, 2013
219
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /etc/default/celeryd:
  2. # %n will be replaced with the nodename.
  3. CELERYD_LOG_FILE="/var/log/celery/%n.log"
  4. CELERYD_PID_FILE="/var/run/celery/%n.pid"
  5.  
  6. # Workers should run as an unprivileged user.
  7. CELERYD_USER="celery"
  8. CELERYD_GROUP="celerygroup"
  9.  
  10.  
  11.  
  12. Permissions:
  13.  
  14. sudo mkdir /var/log/celery/
  15. sudo mkdir /var/run/celery/
  16.  
  17. sudo adduser celery
  18. sudo groupadd celerygroup
  19. sudo usermod -a -G celerygroup celery
  20. sudo chgrp -R celerygroup /var/log/celery/
  21. sudo chgrp -R celerygroup /var/run/celery/
  22. sudo chmod -R 770 /var/log/celery/
  23. sudo chmod -R 770 /var/run/celery/
RAW Paste Data