aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_posix.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_posix.lua')
-rw-r--r--plugins/mod_posix.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index 5f7dfc5b..ab42a9a0 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -102,7 +102,12 @@ function syslog_sink_maker(config)
end
require "core.loggingmanager".register_sink_type("syslog", syslog_sink_maker);
-if not module:get_option("no_daemonize") then
+local daemonize = module:get_option("daemonize");
+if daemonize == nil then
+ daemonize = not module:get_option("no_daemonize"); --COMPAT w/ 0.5
+end
+
+if daemonize then
local function daemonize_server()
local ok, ret = pposix.daemonize();
if not ok then