plugins/mod_posix.lua
changeset 10603 4f655918fef1
parent 9932 d92ab8c8006a
parent 10602 5cf481bee678
child 10632 25e178edbc2c
--- a/plugins/mod_posix.lua	Thu Jan 16 16:30:26 2020 +0100
+++ b/plugins/mod_posix.lua	Sun Jan 19 15:34:28 2020 +0000
@@ -112,7 +112,12 @@
 	end
 end
 
-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";