X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=openvimd.py;h=8fe38434bfeb4d26a00a9a434b170052b781df95;hb=3782945e0a074cb28f82a512f7a9128797b298e3;hp=be5d46ee29358be83e8a189cf0a8060ab77c4cd0;hpb=57f7bda62b86d19fbcd7b90271c7150ca8a8ab18;p=osm%2Fopenvim.git diff --git a/openvimd.py b/openvimd.py index be5d46e..8fe3843 100755 --- a/openvimd.py +++ b/openvimd.py @@ -28,11 +28,11 @@ and launches the rest of threads: http clients, openflow controller and host controllers ''' -__author__="Alfonso Tierno" -__date__ ="$10-jul-2014 12:07:15$" -__version__="0.5.3-r520" -version_date="Jan 2017" -database_version="0.10" #expected database schema version +__author__ = "Alfonso Tierno" +__date__ = "$10-jul-2014 12:07:15$" +__version__ = "0.5.7-r524" +version_date = "Feb 2017" +database_version = "0.14" #expected database schema version import httpserver import auxiliary_functions as af @@ -171,6 +171,9 @@ if __name__=="__main__": engine = None + http_thread = None + http_thread_admin = None + try: #Load configuration file r, config_dic = load_configuration(config_file) @@ -269,6 +272,10 @@ if __name__=="__main__": logger.info('Exiting openvimd') if engine: engine.stop_service() + if http_thread: + http_thread.join(1) + if http_thread_admin: + http_thread_admin.join(1) logger.debug( "bye!") exit()