fix service enablement
This commit is contained in:
parent
2135cf87c2
commit
292e46d001
1 changed files with 5 additions and 2 deletions
7
stack.sh
7
stack.sh
|
@ -250,8 +250,11 @@ rm -f $GLANCE_DIR/glance.sqlite
|
||||||
# nova api crashes if we start it with a regular screen command,
|
# nova api crashes if we start it with a regular screen command,
|
||||||
# so send the start command by forcing text into the window.
|
# so send the start command by forcing text into the window.
|
||||||
function screen_it {
|
function screen_it {
|
||||||
screen -S nova -X screen -t $1
|
# only run the services specified in $ENABLED_SERVICES
|
||||||
screen -S nova -p $1 -X stuff "$2$NL"
|
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"
|
screen_it g-api "cd $GLANCE_DIR; bin/glance-api --config-file=etc/glance-api.conf"
|
||||||
|
|
Loading…
Reference in a new issue