diff options
author | Kim Alvefur <zash@zash.se> | 2019-01-06 12:18:48 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-01-06 12:18:48 +0100 |
commit | c1722de2333d48eb3ab57c6e285a88e8f17cf7f5 (patch) | |
tree | 4835386e930acc8100f602f212510efe7f49e11a | |
parent | c3c38cd2b33d37dfe980c4e21c9b369c138f20c5 (diff) | |
parent | 1e9a016034d106b7f4f97b0cd11d88fb97d5b120 (diff) | |
download | prosody-c1722de2333d48eb3ab57c6e285a88e8f17cf7f5.tar.gz prosody-c1722de2333d48eb3ab57c6e285a88e8f17cf7f5.zip |
Merge 0.11->trunk
-rw-r--r-- | plugins/mod_posix.lua | 2 | ||||
-rw-r--r-- | util/startup.lua | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua index 825d3be0..23df4d23 100644 --- a/plugins/mod_posix.lua +++ b/plugins/mod_posix.lua @@ -172,7 +172,7 @@ if have_signal then signal.signal("SIGHUP", function () module:log("info", "Received SIGHUP"); prosody.reload_config(); - prosody.reopen_logfiles(); + -- this also reloads logging end); signal.signal("SIGINT", function () diff --git a/util/startup.lua b/util/startup.lua index e92867dc..c101c290 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -87,6 +87,9 @@ function startup.init_logging() -- Initialize logging local loggingmanager = require "core.loggingmanager" loggingmanager.reload_logging(); + prosody.events.add_handler("config-reloaded", function () + prosody.events.fire_event("reopen-log-files"); + end); prosody.events.add_handler("reopen-log-files", function () loggingmanager.reload_logging(); prosody.events.fire_event("logging-reloaded"); |