diff options
author | Kim Alvefur <zash@zash.se> | 2014-04-10 13:15:11 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-04-10 13:15:11 +0200 |
commit | ae8a4fb909a0cce10a12e9ced65e45ef2d1495fa (patch) | |
tree | b842c0fb3552fbbaa03253af7cd869f0048753fa /prosody | |
parent | e06966ee436e4d461b03aaf8691fe76dcd6d588b (diff) | |
parent | 1f74845db7945a874ef308a9fe32edce4b2ed7fc (diff) | |
download | prosody-ae8a4fb909a0cce10a12e9ced65e45ef2d1495fa.tar.gz prosody-ae8a4fb909a0cce10a12e9ced65e45ef2d1495fa.zip |
Merge 0.9->0.10
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -49,9 +49,6 @@ _G.prosody = prosody; -- Check dependencies local dependencies = require "util.dependencies"; -if not dependencies.check_dependencies() then - os.exit(1); -end -- Load the config-parsing module config = require "core.configmanager" @@ -116,6 +113,12 @@ function read_config() end end +function check_dependencies() + if not dependencies.check_dependencies() then + os.exit(1); + end +end + function load_libraries() -- Load socket framework server = require "net.server" @@ -382,6 +385,7 @@ init_logging(); sanity_check(); sandbox_require(); set_function_metatable(); +check_dependencies(); load_libraries(); init_global_state(); read_version(); |