From e3c8c6afff14d8f8fec396709117b30cfd207aae Mon Sep 17 00:00:00 2001 From: Mario Preksavec Date: Sat, 28 Feb 2015 03:30:02 +0700 Subject: system/graphite-web: Added (Enterprise Scalable Realtime Graphing). Signed-off-by: Willy Sudiarto Raharjo --- .../scripts/graphite-build-search-index | 21 +++++++++++++++++++++ system/graphite-web/scripts/graphite-manage | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 system/graphite-web/scripts/graphite-build-search-index create mode 100644 system/graphite-web/scripts/graphite-manage (limited to 'system/graphite-web/scripts') diff --git a/system/graphite-web/scripts/graphite-build-search-index b/system/graphite-web/scripts/graphite-build-search-index new file mode 100644 index 0000000000..9a86ab1924 --- /dev/null +++ b/system/graphite-web/scripts/graphite-build-search-index @@ -0,0 +1,21 @@ +#!/bin/bash +# Jonas Genannt , 2012 for the Debian Project +# Modified by Mario Preksavec , 2015 for Slackware + +set -e + +INDEX_FILE_TMP=$(mktemp) + +INDEX_FILE="/var/lib/graphite/search_index" +WHISPER_DIR="/var/lib/graphite/whisper" + + +cd ${WHISPER_DIR} && find -L . -name '*.wsp' | sed \ + -e 's@\.wsp$@@' \ + -e 's@^\./@@' \ + -e 's@/@.@g' > ${INDEX_FILE_TMP} + +chmod 0644 ${INDEX_FILE_TMP} +chown graphite:graphite ${INDEX_FILE_TMP} + +mv -f ${INDEX_FILE_TMP} ${INDEX_FILE} diff --git a/system/graphite-web/scripts/graphite-manage b/system/graphite-web/scripts/graphite-manage new file mode 100644 index 0000000000..d38bd5e4ae --- /dev/null +++ b/system/graphite-web/scripts/graphite-manage @@ -0,0 +1,3 @@ +#!/bin/bash + +django-admin.py --settings=graphite.settings -- cgit v1.2.3