aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-04-10 13:15:11 +0200
committerKim Alvefur <zash@zash.se>2014-04-10 13:15:11 +0200
commitb9751f2455a3a7a72c2505d3fc8296ee722726cc (patch)
treeb842c0fb3552fbbaa03253af7cd869f0048753fa /prosody
parent038d77554396739a50af3a3519c053d0b2b2276e (diff)
parent51dce4916210eafee4bdccd6aa9461f2e8effc74 (diff)
downloadprosody-b9751f2455a3a7a72c2505d3fc8296ee722726cc.tar.gz
prosody-b9751f2455a3a7a72c2505d3fc8296ee722726cc.zip
Merge 0.9->0.10
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody10
1 files changed, 7 insertions, 3 deletions
diff --git a/prosody b/prosody
index b411370f..8fcee8e8 100755
--- a/prosody
+++ b/prosody
@@ -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();