#!/bin/bash
export TSDB_VERSION="::TSDB_VERSION::"
echo "Sleeping for 30 seconds to give HBase time to warm up"
sleep 30 

if [ ! -e /opt/opentsdb_tables_created.txt ]; then
	echo "creating tsdb tables"
	bash /opt/bin/create_tsdb_tables.sh
	echo "created tsdb tables"
fi

echo "starting opentsdb"
/opt/opentsdb/opentsdb-${TSDB_VERSION}/build/tsdb tsd --port=4242 --staticroot=/opt/opentsdb/opentsdb-${TSDB_VERSION}/build/staticroot --cachedir=/tmp --auto-metric

#!/bin/bash
export TSDB_VERSION="::TSDB_VERSION::"
echo "Sleeping for 30 seconds to give HBase time to warm up"
sleep 30 

if [ ! -e /opt/opentsdb_tables_created.txt ]; then
	echo "creating tsdb tables"
	bash /opt/bin/create_tsdb_tables.sh
	echo "created tsdb tables"
fi

echo "starting opentsdb"
/opt/opentsdb/opentsdb-${TSDB_VERSION}/build/tsdb tsd --port=4242 --config=/opt/opentsdb/opentsdb.conf --staticroot=/opt/opentsdb/opentsdb-${TSDB_VERSION}/build/staticroot --cachedir=/tmp --auto-metric

Add '--config' CLI parameter at OpenTSDB startup
Add '--config' CLI parameter at OpenTSDB startup