summaryrefslogtreecommitdiffstats
path: root/bin/nova-vncproxy
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2011-09-21 09:00:18 +0000
committerChris Behrens <cbehrens@codestud.com>2011-09-21 09:00:18 +0000
commita63ca427e75c73611dd129bc7b5a625f6c06fa44 (patch)
treed80bef65fe63bb45fbf201f0c0475d3d699fa045 /bin/nova-vncproxy
parent4d0bb8730a076b44d0a37fd0770c743b834e5751 (diff)
parentd9752d46554ffa87360bfd740177b40871cfbea6 (diff)
Merged trunk
Diffstat (limited to 'bin/nova-vncproxy')
-rwxr-xr-xbin/nova-vncproxy15
1 files changed, 9 insertions, 6 deletions
diff --git a/bin/nova-vncproxy b/bin/nova-vncproxy
index dc08e2433..8e75451cb 100755
--- a/bin/nova-vncproxy
+++ b/bin/nova-vncproxy
@@ -107,10 +107,13 @@ if __name__ == "__main__":
else:
with_auth = auth.VNCNovaAuthMiddleware(with_logging)
- server = wsgi.Server("VNC Proxy",
- with_auth,
- host=FLAGS.vncproxy_host,
- port=FLAGS.vncproxy_port)
- server.start_tcp(handle_flash_socket_policy, 843, host=FLAGS.vncproxy_host)
- service.serve(server)
+ wsgi_server = wsgi.Server("VNC Proxy",
+ with_auth,
+ host=FLAGS.vncproxy_host,
+ port=FLAGS.vncproxy_port)
+ wsgi_server.start_tcp(handle_flash_socket_policy,
+ 843,
+ host=FLAGS.vncproxy_host)
+ server = service.Service.create(binary='nova-vncproxy')
+ service.serve(wsgi_server, server)
service.wait()