aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_posix.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-08 15:25:03 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-08 15:25:03 +0000
commitc529f3ff76ae179dc075e63b5f68fb7a5e950680 (patch)
tree8404b830f4920712eb3f335b517934f3438ed6ba /plugins/mod_posix.lua
parentf14b4f762ac625474ebd2c260c558068dfd07d60 (diff)
downloadprosody-c529f3ff76ae179dc075e63b5f68fb7a5e950680.tar.gz
prosody-c529f3ff76ae179dc075e63b5f68fb7a5e950680.zip
mod_posix: Log warning when no_daemonize is used, and instruct on how to update config
Diffstat (limited to 'plugins/mod_posix.lua')
-rw-r--r--plugins/mod_posix.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index ab42a9a0..b75b9610 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -104,7 +104,12 @@ require "core.loggingmanager".register_sink_type("syslog", syslog_sink_maker);
local daemonize = module:get_option("daemonize");
if daemonize == nil then
- daemonize = not module:get_option("no_daemonize"); --COMPAT w/ 0.5
+ local no_daemonize = module:get_option("no_daemonize"); --COMPAT w/ 0.5
+ daemonize = not no_daemonize;
+ if no_daemonize ~= nil then
+ module:log("warn", "The 'no_daemonize' option is now replaced by 'daemonize'");
+ module:log("warn", "Update your config from 'no_daemonize = %s' to 'daemonize = %s'", tostring(no_daemonize), tostring(daemonize));
+ end
end
if daemonize then