Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. from wsgiref.simple_server import make_server, demo_app
  4.  
  5. from ceilometer import service
  6. from ceilometer.api import app
  7.  
  8. # Initialize the oslo configuration library and logging
  9. conf = service.prepare_service([])
  10. application = app.load_app(conf)
  11.  
  12.  
  13. httpd = make_server('172.16.10.94', 8777, application)
  14.  
  15. # Respond to requests until process is killed
  16. httpd.serve_forever()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement