Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/mod_posix.lua Tue Jan 21 03:24:40 2014 +0000 +++ b/plugins/mod_posix.lua Sun Jan 26 18:35:03 2014 +0100 @@ -128,7 +128,7 @@ end require "core.loggingmanager".register_sink_type("syslog", syslog_sink_maker); -local daemonize = module:get_option("daemonize"); +local daemonize = module:get_option("daemonize", prosody.installed); if daemonize == nil then local no_daemonize = module:get_option("no_daemonize"); --COMPAT w/ 0.5 daemonize = not no_daemonize;