aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-01-26 16:42:56 +0100
committerKim Alvefur <zash@zash.se>2020-01-26 16:42:56 +0100
commit56290868a1893dc36aa486b770fea42d50b4bcbc (patch)
tree4ba7c34a24ab4fb47a4ee64e76656dae7ee98571 /plugins
parentc139f46ec0357c09c8fb7cd458ec16c53d8c751c (diff)
downloadprosody-56290868a1893dc36aa486b770fea42d50b4bcbc.tar.gz
prosody-56290868a1893dc36aa486b770fea42d50b4bcbc.zip
mod_posix: Add deprecation warning for the 'daemonize' option
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_posix.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index bcef2c1d..5177aaa5 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -116,7 +116,11 @@ local daemonize = prosody.opts.daemonize;
if daemonize == nil then
-- Fall back to config file if not specified on command-line
- daemonize = module:get_option("daemonize", prosody.installed);
+ daemonize = module:get_option_boolean("daemonize", nil);
+ if daemonize ~= nil then
+ module:log("warn", "The 'daemonize' option has been deprecated, specify -D or -F on the command line instead.");
+ -- TODO: Write some docs and include a link in the warning.
+ end
end
local function remove_log_sinks()