Browse code

fix service enablement

Anthony Young authored on 2011/09/14 03:28:56
Showing 1 changed files
... ...
@@ -250,8 +250,11 @@ rm -f $GLANCE_DIR/glance.sqlite
250 250
 # nova api crashes if we start it with a regular screen command,
251 251
 # so send the start command by forcing text into the window.
252 252
 function screen_it {
253
-    screen -S nova -X screen -t $1
254
-    screen -S nova -p $1 -X stuff "$2$NL"
253
+    # only run the services specified in $ENABLED_SERVICES
254
+    if [[ "$ENABLED_SERVICES" =~ "$1" ]]; then
255
+        screen -S nova -X screen -t $1
256
+        screen -S nova -p $1 -X stuff "$2$NL"
257
+    fi
255 258
 }
256 259
 
257 260
 screen_it g-api "cd $GLANCE_DIR; bin/glance-api --config-file=etc/glance-api.conf"