Browse code

Invoke Heat via console script generated binaries

Depends-On: Ic8f5b8dc85098de752bbf673c4b15c06fdc4162a
Change-Id: Iffb6d09bfef593d854b38e68200ae6039c4727e7

Sirushti Murugesan authored on 2015/06/17 02:55:17
Showing 1 changed files
... ...
@@ -53,6 +53,8 @@ HEAT_TEMPLATES_DIR=$HEAT_CONF_DIR/templates
53 53
 HEAT_API_HOST=${HEAT_API_HOST:-$HOST_IP}
54 54
 HEAT_API_PORT=${HEAT_API_PORT:-8004}
55 55
 
56
+# Support entry points installation of console scripts
57
+HEAT_BIN_DIR=$(get_python_exec_prefix)
56 58
 
57 59
 # other default options
58 60
 if [[ "$HEAT_STANDALONE" = "True" ]]; then
... ...
@@ -190,7 +192,7 @@ function init_heat {
190 190
     # (re)create heat database
191 191
     recreate_database heat
192 192
 
193
-    $HEAT_DIR/bin/heat-manage db_sync
193
+    $HEAT_BIN_DIR/heat-manage db_sync
194 194
     create_heat_cache_dir
195 195
 }
196 196
 
... ...
@@ -227,10 +229,10 @@ function install_heat_other {
227 227
 
228 228
 # start_heat() - Start running processes, including screen
229 229
 function start_heat {
230
-    run_process h-eng "$HEAT_DIR/bin/heat-engine --config-file=$HEAT_CONF"
231
-    run_process h-api "$HEAT_DIR/bin/heat-api --config-file=$HEAT_CONF"
232
-    run_process h-api-cfn "$HEAT_DIR/bin/heat-api-cfn --config-file=$HEAT_CONF"
233
-    run_process h-api-cw "$HEAT_DIR/bin/heat-api-cloudwatch --config-file=$HEAT_CONF"
230
+    run_process h-eng "$HEAT_BIN_DIR/heat-engine --config-file=$HEAT_CONF"
231
+    run_process h-api "$HEAT_BIN_DIR/heat-api --config-file=$HEAT_CONF"
232
+    run_process h-api-cfn "$HEAT_BIN_DIR/heat-api-cfn --config-file=$HEAT_CONF"
233
+    run_process h-api-cw "$HEAT_BIN_DIR/heat-api-cloudwatch --config-file=$HEAT_CONF"
234 234
 }
235 235
 
236 236
 # stop_heat() - Stop running processes