summaryrefslogtreecommitdiffstats
path: root/nova/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/service.py')
-rw-r--r--nova/service.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/nova/service.py b/nova/service.py
index 8fdaca0a5..389a6b2df 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -42,6 +42,7 @@ from nova import utils
from nova import version
from nova import wsgi
+
FLAGS = flags.FLAGS
flags.DEFINE_integer('report_interval', 10,
'seconds between nodes reporting state to datastore',
@@ -271,6 +272,11 @@ def serve(*services):
x.start()
+def wait():
+ while True:
+ greenthread.sleep(5)
+
+
def serve_wsgi(cls, conf):
try:
service = cls.create(conf)
@@ -290,11 +296,6 @@ def serve_wsgi(cls, conf):
return service
-def wait():
- while True:
- greenthread.sleep(5)
-
-
def _run_wsgi(paste_config_file, apis):
logging.debug(_("Using paste.deploy config at: %s"), paste_config_file)
apps = []