# HG changeset patch # User Kim Alvefur # Date 1390757703 -3600 # Node ID 3547f315a1f5cdef0d7cc7b4fe8ce648cf904cc0 # Parent 0f6399c86c10cbffb5d420268d58ef0c683079d0 mod_posix: Daemonize by default only when installed diff -r 0f6399c86c10 -r 3547f315a1f5 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;