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 | a0dffb53e17d10eea3625dd49751e6cc3ed6d234 (patch) | |
tree | 4ba7c34a24ab4fb47a4ee64e76656dae7ee98571 | |
parent | a15d977f4446660e899dc8c3bafb984163a2de27 (diff) | |
download | prosody-a0dffb53e17d10eea3625dd49751e6cc3ed6d234.tar.gz prosody-a0dffb53e17d10eea3625dd49751e6cc3ed6d234.zip |
mod_posix: Add deprecation warning for the 'daemonize' option
-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() |