aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/startup.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/startup.lua b/util/startup.lua
index a33f3f3b..69511bf9 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -496,8 +496,8 @@ end
-- prosodyctl only
function startup.prosodyctl()
- startup.read_config();
startup.init_global_state();
+ startup.read_config();
startup.setup_plugindir();
startup.setup_datadir();
startup.chdir();
@@ -517,13 +517,13 @@ end
function startup.prosody()
-- These actions are in a strict order, as many depend on
-- previous steps to have already been performed
+ startup.init_global_state();
startup.read_config();
startup.sanity_check();
startup.sandbox_require();
startup.set_function_metatable();
startup.check_dependencies();
startup.load_libraries();
- startup.init_global_state();
startup.setup_plugindir();
startup.setup_datadir();
startup.init_logging();