aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_posix.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-01-26 18:35:03 +0100
committerKim Alvefur <zash@zash.se>2014-01-26 18:35:03 +0100
commit4896e7ca7e604309d65e8d0baefc24ad362b6772 (patch)
tree8dd39375c66f0e4065da6522d6953e3f63a01c83 /plugins/mod_posix.lua
parent9498616c812b820d54e9e15372b9dafe9aa00a03 (diff)
downloadprosody-4896e7ca7e604309d65e8d0baefc24ad362b6772.tar.gz
prosody-4896e7ca7e604309d65e8d0baefc24ad362b6772.zip
mod_posix: Daemonize by default only when installed
Diffstat (limited to 'plugins/mod_posix.lua')
-rw-r--r--plugins/mod_posix.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index 7a6ccd94..69542c96 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -128,7 +128,7 @@ function syslog_sink_maker(config)
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;