Skip to content

Instantly share code, notes, and snippets.

@mleinart
Created June 22, 2012 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mleinart/2975033 to your computer and use it in GitHub Desktop.
Save mleinart/2975033 to your computer and use it in GitHub Desktop.
Runit run file for carbon-cache under virtualenv with twistd
!/bin/sh
exec 2>&1
source /opt/graphite/.venv/bin/activate
exec chpst -e env -u graphite -l /opt/graphite/storage/carbon-cache.lock -- twistd --nodaemon --umask=0022 carbon-cache -c /opt/graphite/conf/carbon.conf start
@mleinart
Copy link
Author

Also with PYTHONPATH=/opt/graphite/lib and GRAPHITE_ROOT=/opt/graphite set via the 'env' dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment