Skip to content

Commit 8362a2a

Browse files
committed
Fixing issues when mounting storage volume (#40 / #28)
1 parent c18f72d commit 8362a2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

conf/etc/my_init.d/01_conf_init.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ conf_dir=/etc/graphite-statsd/conf
1010
graphite_dir_contents=$(find /opt/graphite -mindepth 1 -print -quit)
1111
graphite_conf_dir_contents=$(find /opt/graphite/conf -mindepth 1 -print -quit)
1212
graphite_webapp_dir_contents=$(find /opt/graphite/webapp/graphite -mindepth 1 -print -quit)
13-
graphite_storage_dir_contents=$(find /opt/graphite/storage -mindepth 1 -print -quit)
13+
graphite_storage_dir_contents=$(find /opt/graphite/storage -mindepth 1 -print -quit | grep -v lost+found)
1414
graphite_log_dir_contents=$(find /var/log/graphite -mindepth 1 -print -quit)
1515
graphite_custom_dir_contents=$(find /opt/graphite/webapp/graphite/functions/custom -mindepth 1 -print -quit)
1616
if [[ -z $graphite_log_dir_contents ]]; then
1717
mkdir -p /var/log/graphite
18-
chown graphite:graphite /var/log/graphite
1918
touch /var/log/syslog
2019
fi
2120
if [[ -z $graphite_dir_contents ]]; then
22-
# git clone -b 1.0.2 --depth 1 https://github.com/graphite-project/graphite-web.git /usr/local/src/graphite-web
2321
cd /usr/local/src/graphite-web && python ./setup.py install
2422
fi
2523
if [[ -z $graphite_conf_dir_contents ]]; then
@@ -29,6 +27,7 @@ if [[ -z $graphite_webapp_dir_contents ]]; then
2927
cp $conf_dir/opt/graphite/webapp/graphite/local_settings.py /opt/graphite/webapp/graphite/local_settings.py
3028
fi
3129
if [[ -z $graphite_storage_dir_contents ]]; then
30+
mkdir -p /opt/graphite/storage/whisper
3231
/usr/local/bin/django_admin_init.exp
3332
fi
3433
if [[ -z $graphite_custom_dir_contents ]]; then

conf/etc/service/graphite/run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
22

3+
sv start nginx || exit 1
34
export PYTHONPATH=/opt/graphite/webapp && exec /usr/local/bin/gunicorn wsgi --workers=4 --bind=0.0.0.0:8080 --log-file=/var/log/gunicorn.log --preload --pythonpath=/opt/graphite/webapp/graphite

0 commit comments

Comments
 (0)