diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-08 15:10:44 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-08 15:10:44 +0000 |
commit | f14b4f762ac625474ebd2c260c558068dfd07d60 (patch) | |
tree | 91f0ea18f7a8a0cc87a42c59ba0afa5aa3b0a2fb | |
parent | 581c6ab9d1d9a20fd410548410f5b4e82d12346c (diff) | |
download | prosody-f14b4f762ac625474ebd2c260c558068dfd07d60.tar.gz prosody-f14b4f762ac625474ebd2c260c558068dfd07d60.zip |
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
-rw-r--r-- | plugins/mod_posix.lua | 7 |
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 |