more work on multi-lxc
diff --git a/build_lxc.sh b/build_lxc.sh
index 9f133fd..4987193 100755
--- a/build_lxc.sh
+++ b/build_lxc.sh
@@ -120,13 +120,16 @@
echo "nameserver $NAMESERVER" | resolvconf -a eth0
sleep 1
+# Kill any existing screens
+sudo -c "killall screen" stack
+
# Install and run stack.sh
apt-get update
apt-get -y --force-yes install git-core vim-nox sudo
if [ ! -d "/opt/nfs-stack" ]; then
su -c "git clone git://github.com/cloudbuilders/nfs-stack.git ~/nfs-stack" stack
fi
-nohup su -c "cd ~/nfs-stack && $STACKSH_PARAMS ./stack.sh" stack &> /opt/run.sh.log
+su -c "cd ~/nfs-stack && $STACKSH_PARAMS ./stack.sh" stack &> /opt/run.sh.log
EOF
# Make the run.sh executable