Commit 39be440d by Dóbé Péter

fix startup/syncdb problems with Graphite due to missing (issue #27)

parent 365c2a84
......@@ -13,5 +13,5 @@ env HOME=/home/{{ pillar['graphite']['user'] }}
. $HOME/.virtualenvs/graphite/local/bin/activate
cd /opt/graphite/webapp/graphite
exec python runserver [::]:8081
PYTHONPATH=/opt/graphite/webapp exec runserver [::]:8081 --settings=graphite.settings
end script
......@@ -6,7 +6,7 @@
User={{ pillar['graphite']['user'] }}
Group={{ pillar['graphite']['user'] }}
ExecStart=/bin/bash -c "source /etc/profile; workon graphite; exec python runserver [::]:8081"
ExecStart=/bin/bash -c "source /etc/profile; workon graphite; PYTHONPATH=/opt/graphite/webapp exec runserver [::]:8081 --settings=graphite.settings"
source /home/{{ pillar['graphite']['user'] }}/.virtualenvs/graphite/bin/activate;
cd /opt/graphite/webapp/graphite/
python syncdb --noinput
PYTHONPATH=/opt/graphite/webapp syncdb --settings=graphite.settings --noinput
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment