function prosody.reload_config()
log("info", "Reloading configuration file");
prosody.events.fire_event("reloading-config");
function prosody.reload_config()
log("info", "Reloading configuration file");
prosody.events.fire_event("reloading-config");
- local ok, level, err = config.load((rawget(_G, "CFG_CONFIGDIR") or ".").."/prosody.cfg.lua");
+ local ok, level, err = config.load(prosody.config_file);
if not ok then
if level == "parser" then
log("error", "There was an error parsing the configuration file: %s", tostring(err));
if not ok then
if level == "parser" then
log("error", "There was an error parsing the configuration file: %s", tostring(err));