# HG changeset patch # User Matthew Wild # Date 1255967630 -3600 # Node ID 24f54340a6708fb8b06022b13e39608182cdc67d # Parent c712ea57b8773b9d4f17b4328aa2965b6254b3b1 prosodyctl: Remove dependency on hostmanager, and friends diff -r c712ea57b877 -r 24f54340a670 prosodyctl --- a/prosodyctl Sun Oct 18 16:16:27 2009 +0100 +++ b/prosodyctl Mon Oct 19 16:53:50 2009 +0100 @@ -32,7 +32,6 @@ -- Required to be able to find packages installed with luarocks pcall(require, "luarocks.require") - config = require "core.configmanager" do @@ -107,10 +106,15 @@ ["not-running"] = "Prosody is not running"; }, { __index = function (t,k) return "Error: "..(tostring(k):gsub("%-", " "):gsub("^.", string.upper)); end }); +local events = require "util.events".new(); + hosts = {}; +prosody = { hosts = hosts, events = events }; -require "core.hostmanager" -require "core.eventmanager".fire_event("server-starting"); +for hostname, config in pairs(config.getconfig()) do + hosts[hostname] = { events = events }; +end + require "core.modulemanager" require "util.prosodyctl"