From 9e68af7d170db8f4231727ebdc6630320213da8d Mon Sep 17 00:00:00 2001 From: Sirushti Murugesan Date: Tue, 16 Jun 2015 23:25:17 +0530 Subject: [PATCH] Invoke Heat via console script generated binaries Depends-On: Ic8f5b8dc85098de752bbf673c4b15c06fdc4162a Change-Id: Iffb6d09bfef593d854b38e68200ae6039c4727e7 --- lib/heat | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/heat b/lib/heat index 5cb0dbf6d9..373b810f4a 100644 --- a/lib/heat +++ b/lib/heat @@ -53,6 +53,8 @@ HEAT_TEMPLATES_DIR=$HEAT_CONF_DIR/templates HEAT_API_HOST=${HEAT_API_HOST:-$HOST_IP} HEAT_API_PORT=${HEAT_API_PORT:-8004} +# Support entry points installation of console scripts +HEAT_BIN_DIR=$(get_python_exec_prefix) # other default options if [[ "$HEAT_STANDALONE" = "True" ]]; then @@ -190,7 +192,7 @@ function init_heat { # (re)create heat database recreate_database heat - $HEAT_DIR/bin/heat-manage db_sync + $HEAT_BIN_DIR/heat-manage db_sync create_heat_cache_dir } @@ -227,10 +229,10 @@ function install_heat_other { # start_heat() - Start running processes, including screen function start_heat { - run_process h-eng "$HEAT_DIR/bin/heat-engine --config-file=$HEAT_CONF" - run_process h-api "$HEAT_DIR/bin/heat-api --config-file=$HEAT_CONF" - run_process h-api-cfn "$HEAT_DIR/bin/heat-api-cfn --config-file=$HEAT_CONF" - run_process h-api-cw "$HEAT_DIR/bin/heat-api-cloudwatch --config-file=$HEAT_CONF" + run_process h-eng "$HEAT_BIN_DIR/heat-engine --config-file=$HEAT_CONF" + run_process h-api "$HEAT_BIN_DIR/heat-api --config-file=$HEAT_CONF" + run_process h-api-cfn "$HEAT_BIN_DIR/heat-api-cfn --config-file=$HEAT_CONF" + run_process h-api-cw "$HEAT_BIN_DIR/heat-api-cloudwatch --config-file=$HEAT_CONF" } # stop_heat() - Stop running processes