Browse code

move screen creation closer to where used

Jesse Andrews authored on 2011/09/17 08:30:55
Showing 1 changed files
... ...
@@ -158,10 +158,6 @@ git_clone https://github.com/cloudbuilders/openstack-munin.git $MUNIN_DIR
158 158
 # ==============
159 159
 
160 160
 
161
-# create a new named screen to store things in
162
-screen -d -m -S nova -t nova
163
-sleep 1
164
-
165 161
 # setup our checkouts so they are installed into python path
166 162
 # allowing ``import nova`` or ``import glance.client``
167 163
 cd $NOVA_DIR; sudo python setup.py develop
... ...
@@ -405,6 +401,10 @@ function screen_it {
405 405
     fi
406 406
 }
407 407
 
408
+# create a new named screen to run processes in
409
+screen -d -m -S nova -t nova
410
+sleep 1
411
+
408 412
 screen_it g-api "cd $GLANCE_DIR; bin/glance-api --config-file=etc/glance-api.conf"
409 413
 screen_it g-reg "cd $GLANCE_DIR; bin/glance-registry --config-file=etc/glance-registry.conf"
410 414
 screen_it key "$KEYSTONE_DIR/bin/keystone --config-file $KEYSTONE_CONF"