# HG changeset patch # User Matthew Wild # Date 1257693044 0 # Node ID 72784ce0c0e08953101d848f7a53bdff83708d09 # Parent 464a5392bc80f63ae430e88a502ed9f4620126a0 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 diff -r 464a5392bc80 -r 72784ce0c0e0 plugins/mod_posix.lua --- a/plugins/mod_posix.lua Sun Nov 08 15:09:11 2009 +0000 +++ b/plugins/mod_posix.lua Sun Nov 08 15:10:44 2009 +0000 @@ -102,7 +102,12 @@ 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