aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-28 14:56:47 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-28 14:56:47 +0000
commit08284a586ec1213f7f22e86fb6950b5f335915a9 (patch)
tree7620dce4026b57f21936ef7122292bd2da994cfa /prosody
parent74ceb83ccae35196585ffab5abe678e544de9d1b (diff)
downloadprosody-08284a586ec1213f7f22e86fb6950b5f335915a9.tar.gz
prosody-08284a586ec1213f7f22e86fb6950b5f335915a9.zip
util.dependencies, prosody, prosodyctl: Give util.dependencies a check_dependencies() function so the caller can decide what to do when dependencies aren't met - update prosody/prosodyctl for this change
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody4
1 files changed, 3 insertions, 1 deletions
diff --git a/prosody b/prosody
index 829ca4c4..52251dac 100755
--- a/prosody
+++ b/prosody
@@ -114,7 +114,9 @@ function load_libraries()
require "core.loggingmanager"
-- Check runtime dependencies
- require "util.dependencies"
+ if not require "util.dependencies".check_dependencies() then
+ os.exit(1);
+ end
-- Load socket framework
server = require "net.server"