From f14b4f762ac625474ebd2c260c558068dfd07d60 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 8 Nov 2009 15:10:44 +0000 Subject: mod_posix: Switch config option to 'daemonize', fall back to 'no_daemonize' if not set, default behaviour remains the same... daemonize if mod_posix is loaded --- plugins/mod_posix.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/mod_posix.lua') 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 -- cgit v1.2.3