diff --git a/conf/etc/service/brubeck/run b/conf/etc/service/brubeck/run index 6d92099..b8b5d90 100755 --- a/conf/etc/service/brubeck/run +++ b/conf/etc/service/brubeck/run @@ -2,4 +2,8 @@ [[ -n "${BRUBECK}" ]] || exit 1 +if [ ! -f /opt/graphite/conf/brubeck.json ]; then + cp /opt/defaultconf/graphite/brubeck.json /opt/graphite/conf/brubeck.json +fi + exec /opt/graphite/bin/brubeck --config=/opt/graphite/conf/brubeck.json 2>&1 diff --git a/conf/etc/service/go-carbon/run b/conf/etc/service/go-carbon/run index a07e524..004f3cf 100755 --- a/conf/etc/service/go-carbon/run +++ b/conf/etc/service/go-carbon/run @@ -2,4 +2,8 @@ [[ -n "${GOCARBON}" ]] || exit 1 +if [ ! -f /opt/graphite/conf/go-carbon.conf ]; then + cp /opt/defaultconf/graphite/go-carbon.conf /opt/graphite/conf/go-carbon.conf +fi + exec /opt/graphite/bin/go-carbon -config="/opt/graphite/conf/go-carbon.conf" -daemon=false 2>&1