clean up to use common service code
service code in openstack.common has a factory type service to setup services. this change uses it. Change-Id: Ibb268e367a9c1f4a4b3addae24fd25d346c1c4a6
This commit is contained in:
parent
b7986706bd
commit
1bc9fd7c46
@ -21,8 +21,5 @@ from ceilometer import service
|
||||
|
||||
def main():
|
||||
service.prepare_service()
|
||||
launcher = os_service.ProcessLauncher()
|
||||
launcher.launch_service(
|
||||
notification.NotificationService(),
|
||||
workers=service.get_workers('notification'))
|
||||
launcher.wait()
|
||||
os_service.launch(notification.NotificationService(),
|
||||
workers=service.get_workers('notification')).wait()
|
||||
|
@ -21,8 +21,5 @@ from ceilometer import service
|
||||
|
||||
def main():
|
||||
service.prepare_service()
|
||||
launcher = os_service.ProcessLauncher()
|
||||
launcher.launch_service(
|
||||
collector.CollectorService(),
|
||||
workers=service.get_workers('collector'))
|
||||
launcher.wait()
|
||||
os_service.launch(collector.CollectorService(),
|
||||
workers=service.get_workers('collector')).wait()
|
||||
|
Loading…
Reference in New Issue
Block a user