Commit 808bb0a2 authored by Michael Ott's avatar Michael Ott
Browse files

Set hostnames and ports for CollectAgent servers in init.d script

parent 5c727ce0
......@@ -12,6 +12,13 @@
# Time to wait before giving up on bringing up a service
SERVICE_TIMEOUT=180
MQTT_HOST=0.0.0.0
MQTT_PORT=1883
HTTP_HOST=0.0.0.0
HTTP_PORT=8080
CASSANDRA_HOST=127.0.0.1
CASSANDRA_PORT=9042
DCDB_PREFIX=%DCDB_PREFIX%
PATH=/bin:/usr/bin:${DCDB_PREFIX}/bin:${DCDB_PREFIX}/cassandra/bin
......@@ -77,16 +84,16 @@ case $1 in
cassandra -p $CASSANDRA_PID_FILE
# Wait till cassandra is up (port 9042 is native transport)
wait_for_listen_port 9042
wait_for_listen_port $CASSANDRA_PORT
# Start CollectAgent (TTL for the data is 100 days)
#env LD_LIBRARY_PATH=$LD_LIBRARY_PATH collectagent -D -l 0.0.0.0 -h 127.0.0.1 -t 8640000
# Start CollectAgent (no TTL)
env LD_LIBRARY_PATH=$LD_LIBRARY_PATH collectagent -D -l 0.0.0.0 -h 127.0.0.1
env LD_LIBRARY_PATH=$LD_LIBRARY_PATH collectagent -D -l $MQTT_HOST:$MQTT_PORT -h $CASSANDRA_HOST:$CASSANDRA_PORT -r $HTTP_HOST:$HTTP_PORT
# Wait till CollectAgent is up
wait_for_listen_port 1883
wait_for_listen_port $MQTT_PORT
unlock_dcdb
;;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment