Software /
code /
prosody
Changeset
10598:5cf481bee678 0.11
mod_posix: Support for command-line flags to override 'daemonize' config option
-D / --daemonize
-F / --no-daemonize
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 19 Jan 2020 15:28:09 +0000 |
parents | 10597:25a3c8134b0a |
children | 10599:4f655918fef1 10600:08f2fe5ac30f |
files | plugins/mod_posix.lua |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_posix.lua Sun Jan 19 15:27:16 2020 +0000 +++ b/plugins/mod_posix.lua Sun Jan 19 15:28:09 2020 +0000 @@ -126,7 +126,12 @@ end require "core.loggingmanager".register_sink_type("syslog", syslog_sink_maker); -local daemonize = module:get_option("daemonize", prosody.installed); +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); +end local function remove_log_sinks() local lm = require "core.loggingmanager";