Software /
code /
prosody
Comparison
plugins/mod_posix.lua @ 6002:3547f315a1f5
mod_posix: Daemonize by default only when installed
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Jan 2014 18:35:03 +0100 |
parent | 5776:bd0ff8ae98a8 |
child | 6061:1056ea08970f |
comparison
equal
deleted
inserted
replaced
6000:0f6399c86c10 | 6002:3547f315a1f5 |
---|---|
126 end | 126 end |
127 end; | 127 end; |
128 end | 128 end |
129 require "core.loggingmanager".register_sink_type("syslog", syslog_sink_maker); | 129 require "core.loggingmanager".register_sink_type("syslog", syslog_sink_maker); |
130 | 130 |
131 local daemonize = module:get_option("daemonize"); | 131 local daemonize = module:get_option("daemonize", prosody.installed); |
132 if daemonize == nil then | 132 if daemonize == nil then |
133 local no_daemonize = module:get_option("no_daemonize"); --COMPAT w/ 0.5 | 133 local no_daemonize = module:get_option("no_daemonize"); --COMPAT w/ 0.5 |
134 daemonize = not no_daemonize; | 134 daemonize = not no_daemonize; |
135 if no_daemonize ~= nil then | 135 if no_daemonize ~= nil then |
136 module:log("warn", "The 'no_daemonize' option is now replaced by 'daemonize'"); | 136 module:log("warn", "The 'no_daemonize' option is now replaced by 'daemonize'"); |