mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-21 12:30:41 +00:00
loader: Fix startup issues.
* Merge the preload and load stages, use load ordering to try preload's first. This fixes an issue where `preload=res_config_curl` would fail unless res_curl and func_curl were also preloaded. Now it is only required that those modules be loaded during startup: autoload or regular load is good enough. * The configuration option `require` and `preload-require` were only effective if the modules failed to load. These options will now abort Asterisk startup if required modules fail to reach the 'Running' state. * Missing or invalid 'module.conf' did not prevent startup. Asterisk doesn't do anything without modules so this a fatal error. Change-Id: Ie4176699133f0e3a823b43f90c3348677e43a5f3
This commit is contained in:
@@ -4139,10 +4139,7 @@ static void asterisk_daemon(int isroot, const char *runuser, const char *rungrou
|
||||
check_init(ast_local_init(), "Local Proxy Channel Driver");
|
||||
|
||||
/* We should avoid most config loads before this point as they can't use realtime. */
|
||||
check_init(load_modules(1), "Module Preload");
|
||||
|
||||
/* Load remaining modules */
|
||||
check_init(load_modules(0), "Module");
|
||||
check_init(load_modules(), "Module");
|
||||
|
||||
/*
|
||||
* This has to load after the dynamic modules load, as items in the media
|
||||
|
Reference in New Issue
Block a user