diff --git a/bin/openerp-server.py b/bin/openerp-server.py index a84e50567d0..d3d77786781 100755 --- a/bin/openerp-server.py +++ b/bin/openerp-server.py @@ -112,6 +112,14 @@ import addons # Load and update databases if requested #---------------------------------------------------------- +import service.http_server + +service.http_server.init_servers() +service.http_server.init_xmlrpc() + +import service.netrpc_server +service.netrpc_server.init_servers() + if tools.config['db_name']: for db in tools.config['db_name'].split(','): pooler.get_db_and_pool(db, update_module=tools.config['init'] or tools.config['update']) @@ -155,14 +163,6 @@ if tools.config["stop_after_init"]: # Launch Servers #---------------------------------------------------------- -import service.http_server - -service.http_server.init_servers() -service.http_server.init_xmlrpc() - -import service.netrpc_server -service.netrpc_server.init_servers() - LST_SIGNALS = ['SIGINT', 'SIGTERM'] if os.name == 'posix': LST_SIGNALS.extend(['SIGUSR1','SIGQUIT'])