-
-
Save mleinart/2975033 to your computer and use it in GitHub Desktop.
Runit run file for carbon-cache under virtualenv with twistd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also with PYTHONPATH=/opt/graphite/lib and GRAPHITE_ROOT=/opt/graphite set via the 'env' dir