diff options
author | Kim Alvefur <zash@zash.se> | 2020-01-26 16:42:56 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-01-26 16:42:56 +0100 |
commit | 56290868a1893dc36aa486b770fea42d50b4bcbc (patch) | |
tree | 4ba7c34a24ab4fb47a4ee64e76656dae7ee98571 /plugins | |
parent | c139f46ec0357c09c8fb7cd458ec16c53d8c751c (diff) | |
download | prosody-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.lua | 6 |
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() |