# HG changeset patch # User Kim Alvefur # Date 1580053376 -3600 # Node ID 25e178edbc2c37a5307c18113e3354b99b539a21 # Parent 88be11e9f9b943f1431ecad024e24c0d21a15473 mod_posix: Add deprecation warning for the 'daemonize' option diff -r 88be11e9f9b9 -r 25e178edbc2c plugins/mod_posix.lua --- a/plugins/mod_posix.lua Sun Jan 26 16:40:21 2020 +0100 +++ b/plugins/mod_posix.lua Sun Jan 26 16:42:56 2020 +0100 @@ -116,7 +116,11 @@ 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()