Browse code

more work on multi-lxc

Anthony Young authored on 2011/09/14 17:58:01
Showing 2 changed files
... ...
@@ -120,13 +120,16 @@ cat > $RUN_SH <<EOF
120 120
 echo "nameserver $NAMESERVER" | resolvconf -a eth0
121 121
 sleep 1
122 122
 
123
+# Kill any existing screens
124
+sudo -c "killall screen" stack
125
+
123 126
 # Install and run stack.sh
124 127
 apt-get update
125 128
 apt-get -y --force-yes install git-core vim-nox sudo
126 129
 if [ ! -d "/opt/nfs-stack" ]; then
127 130
     su -c "git clone git://github.com/cloudbuilders/nfs-stack.git ~/nfs-stack" stack
128 131
 fi
129
-nohup su -c "cd ~/nfs-stack && $STACKSH_PARAMS ./stack.sh" stack &> /opt/run.sh.log
132
+su -c "cd ~/nfs-stack && $STACKSH_PARAMS ./stack.sh" stack &> /opt/run.sh.log
130 133
 EOF
131 134
 
132 135
 # Make the run.sh executable
... ...
@@ -37,7 +37,7 @@ API_DIR=$DEST/openstackx
37 37
 NOVNC_DIR=$DEST/noVNC
38 38
 
39 39
 # Specify which services to launch.  These generally correspond to screen tabs
40
-ENABLED_SERVICES=g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash
40
+ENABLED_SERVICES=${ENABLED_SERVICES:-g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash}
41 41
 
42 42
 # Use the first IP unless an explicit is set by ``HOST_IP`` environment variable
43 43
 if [ ! -n "$HOST_IP" ]; then