could not register itself because the refactoring of the startup
script run the services after the registry preloading. I would
still prefer to start the services after, but we first need the
required hooks in the addons, which would allow us to remove any
side-effecting code from them.
bzr revid: vmt@openerp.com-
20110905103619-vhp1goqy7w1nmefu
import_translation()
sys.exit(0)
+ if not config["stop_after_init"]:
+ # Some module register themselves when they are loaded so we need the
+ # services to be running before loading any registry.
+ start_services()
+
if config['db_name']:
for dbname in config['db_name'].split(','):
preload_registry(dbname)
setup_pid_file()
setup_signal_handlers()
- start_services()
logger = logging.getLogger('server')
logger.info('OpenERP server is running, waiting for connections...')
quit_on_signals()