Changeset

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
parents 6000:0f6399c86c10
children 6003:28a90f5fea46
files plugins/mod_posix.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;