fix service enablement

This commit is contained in:
Anthony Young 2011-09-13 11:28:56 -07:00
parent 2135cf87c2
commit 292e46d001

View file

@ -250,8 +250,11 @@ rm -f $GLANCE_DIR/glance.sqlite
# nova api crashes if we start it with a regular screen command,
# so send the start command by forcing text into the window.
function screen_it {
screen -S nova -X screen -t $1
screen -S nova -p $1 -X stuff "$2$NL"
# only run the services specified in $ENABLED_SERVICES
if [[ "$ENABLED_SERVICES" =~ "$1" ]]; then
screen -S nova -X screen -t $1
screen -S nova -p $1 -X stuff "$2$NL"
fi
}
screen_it g-api "cd $GLANCE_DIR; bin/glance-api --config-file=etc/glance-api.conf"