# HG changeset patch # User Kim Alvefur # Date 1397082269 -7200 # Node ID 6cc6b4d407df91348d3cb292b85f8eaccdfa32a5 # Parent 1056ea08970f8e62b32a4b717e7f4d5b6c1bcc4e prosodyctl, util.prosodyctl: Update to reflect that mod_posix gets loaded by default on posix platforms diff -r 1056ea08970f -r 6cc6b4d407df prosodyctl --- a/prosodyctl Thu Apr 10 00:23:35 2014 +0200 +++ b/prosodyctl Thu Apr 10 00:24:29 2014 +0200 @@ -414,7 +414,11 @@ local ok, ret = prosodyctl.start(); if ok then - if config.get("*", "daemonize") ~= false then + local daemonize = config.get("*", "daemonize"); + if daemonize == nil then + daemonize = prosody.installed; + end + if daemonize then local i=1; while true do local ok, running = prosodyctl.isrunning(); diff -r 1056ea08970f -r 6cc6b4d407df util/prosodyctl.lua --- a/util/prosodyctl.lua Thu Apr 10 00:23:35 2014 +0200 +++ b/util/prosodyctl.lua Thu Apr 10 00:24:29 2014 +0200 @@ -189,8 +189,8 @@ return false, "no-pidfile"; end - local modules_enabled = set.new(config.get("*", "modules_enabled")); - if not modules_enabled:contains("posix") then + local modules_enabled = set.new(config.get("*", "modules_disabled")); + if prosody.platform ~= "posix" or modules_enabled:contains("posix") then return false, "no-posix"; end