Standardize API service launcher
The API service was using a needlessly different pattern for launching the service. This change updates it to use the same pattern as all the other services. Change-Id: Ie87f500aef53c07d7a1726a84076dfac8eab26e7
This commit is contained in:
parent
77783cb377
commit
85cc8ea08d
@ -17,9 +17,9 @@ import sys
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
from oslo_service import service
|
||||
|
||||
from designate import hookpoints
|
||||
from designate import service
|
||||
from designate import utils
|
||||
from designate.api import service as api_service
|
||||
|
||||
@ -37,5 +37,5 @@ def main():
|
||||
hookpoints.log_hook_setup()
|
||||
|
||||
server = api_service.Service(threads=CONF['service:api'].threads)
|
||||
launcher = service.launch(CONF, server, CONF['service:api'].workers)
|
||||
launcher.wait()
|
||||
service.serve(server, workers=CONF['service:api'].workers)
|
||||
service.wait()
|
||||
|
Loading…
Reference in New Issue
Block a user