Run swift-proxy from screen.
- Fixes bug 956172
Change-Id: I9a83d6afc04596bf84e3cf27a3f3f6f7b7d05180
diff --git a/stack.sh b/stack.sh
index 218e83f..27173a1 100755
--- a/stack.sh
+++ b/stack.sh
@@ -1182,9 +1182,10 @@
# We then can start rsync.
sudo /etc/init.d/rsync restart || :
- # TODO: Bring some services in foreground.
- # Launch all services.
+ # With swift-init we are first spawning all the swift services but kill the
+ # proxy service so we can run it in foreground in screen.
swift-init all restart
+ swift-init proxy stop
unset s swift_hash swift_auth_server
fi
@@ -1619,6 +1620,7 @@
screen_it n-xvnc "cd $NOVA_DIR && ./bin/nova-xvpvncproxy --config-file $NOVA_CONF_DIR/$NOVA_CONF"
screen_it n-cauth "cd $NOVA_DIR && ./bin/nova-consoleauth"
screen_it horizon "cd $HORIZON_DIR && sudo tail -f /var/log/apache2/error.log"
+screen_it swift "cd $SWIFT_DIR && $SWIFT_DIR/bin/swift-proxy-server ${SWIFT_CONFIG_LOCATION}/proxy-server.conf -v"
# Install Images