mod_posix: Daemonize by default only when installed
authorKim Alvefur <zash@zash.se>
Sun, 26 Jan 2014 18:35:03 +0100
changeset 6002 3547f315a1f5
parent 6000 0f6399c86c10
child 6003 28a90f5fea46
mod_posix: Daemonize by default only when installed
plugins/mod_posix.lua
--- 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;