Commit Graph

33 Commits (8dbde146973dbdf875e1a5fc5a455218426f454c)

Author SHA1 Message Date
Kim Alvefur e2369a0bf6 util.startup: Always reload logging after config (fixes #1284) 7 years ago
Matthew Wild 644e76a64f util.startup: Set flag when config fully loaded 8 years ago
Kim Alvefur 39d4b6f6af util.startup: Add a comment marking some compat code 8 years ago
Matthew Wild aebd5479d2 util.startup: Don't initialize global protection for prosodyctl, for now 8 years ago
Kim Alvefur b37d44f502 util.startup: Force console logging before initializing logging (see 2fdeb979cc7c) 8 years ago
Matthew Wild 5a7d12cdf0 util.startup: Initialize logging immediately after configuration is read (which is how it used to work) 8 years ago
Kim Alvefur 5cf7235594 util.startup/prosodyctl: Delay enabling global protection until last (silences warning about CFG_PLUGINDIR) 8 years ago
Kim Alvefur 0966771990 util.startup: Fix traceback due to both plugin path becoming nil if plugin_paths is unset 8 years ago
Kim Alvefur b1235c60a7 Fix spelling throughout the codebase [codespell] 8 years ago
Kim Alvefur b0be3682af util.startup: Set up event hooks for reloading logging here instead of in loggingmanager to simplify startup dependencies 8 years ago
Kim Alvefur d723c0752e util.startup: Initialize prosody.log / _G.log here instead of in loggingmanager to reduce dependencies 8 years ago
Kim Alvefur 7d46eacc39 util.startup: Initialize logging earlier, so that messages from eg net.server are shown 8 years ago
Kim Alvefur 585601be4b util.startup: Access the hosts table via the prosody global for consistency 8 years ago
Kim Alvefur cd6194c0d8 util.startup: Use own logger instead of the possibly not available yet _G.log 8 years ago
Kim Alvefur 7c95d6006b util.startup: Remove luacheck directive for ignoring use of _G.log which might not exist until loggingmanager has been loaded 8 years ago
Kim Alvefur a1dfe2d935 util.startup: Initialize the 'prosody' global earlier (various things needs the global util.events instance) 8 years ago
Kim Alvefur 13513b9679 util.startup: Factor out processing of plugin and data paths into a separate functions 8 years ago
Kim Alvefur 668062a467 configmanager: Move firing of the 'config-reloaded' event into util.startup (fixes #1117) 8 years ago
Kim Alvefur 0f50f6fbbf util.startup: Read version for prosodyctl (restores version in 'about' command) 8 years ago
Matthew Wild 6105bc5d34 prosody, util.startup: Switch from async.once() to long-lived thread, to avoid GC 8 years ago
Matthew Wild adc3b72672 util.startup: Expose make_host() function 8 years ago
Matthew Wild d93d78a56b util.startup: Expose user switching information via prosody global object 8 years ago
Matthew Wild 7f6635523c util.startup: Fix variable usage [luacheck] 8 years ago
Matthew Wild 944d37eaa9 util.startup: Move original_logging_config to a local variable 8 years ago
Matthew Wild 218854117a util.startup: Restore user switching 8 years ago
Matthew Wild fd412010f4 util.startup: Fix chdir() to use correct path variable 8 years ago
Matthew Wild 791c1f87fd util.startup: Execute startup routine inside async context 8 years ago
Kim Alvefur d0d92da7fa util.startup: Remove unused loop variable [luacheck] 8 years ago
Kim Alvefur 877efb6230 util.startup: Ignore various globals being read and written as part of startup [luacheck] 8 years ago
Kim Alvefur 34be60a40b util.startup: Trim trailing whitespace [luacheck] 8 years ago
Matthew Wild a4816b74d3 util.startup: Oops, uncomment accidentally-commented code 8 years ago
Matthew Wild 102268b8e6 prosody, prosodyctl, util.startup: Finally factor out startup-related and common code into a separate module 8 years ago
Emmanuel Gil Peyrot 240b0bb53e configmanager: Remove support for multiple parsers, fixes #852. 9 years ago
Kim Alvefur 2f315391e3 prosody: Silence warnings about setting the globals 'server' and 'socket' [luacheck] 9 years ago
Kim Alvefur 8e5a639468 prosody: Trim trailing whitespace 9 years ago
Kim Alvefur 5b7f61f6cb prosody: Fix typo 9 years ago
Kim Alvefur 46f818c150 prosody: Add annotations to ignore various globals and unused arguments [luacheck] 9 years ago
Kim Alvefur c24e0667ef prosody: Set session tables on the 'prosody' global first, then export them as globals 9 years ago
Emmanuel Gil Peyrot bbf1653e04 Update every link to the documentation to use HTTPS 10 years ago
Matthew Wild f08c656122 prosody, prosodyctl: Allow setting CFG_* variables via Lua interpreter before loading Prosody. Fixes #308. 10 years ago
Matthew Wild ebf69f7570 prosody: Allow prosody.shutdown() to take an exit code for the process (thanks daurnimator) 10 years ago
Matthew Wild c028aceb9f prosody: Don't silently ignore unknown command-line options 10 years ago
Kim Alvefur ca7b1d853a prosody: Fix sleep call that relied on the no longer existing socket global 10 years ago
Kim Alvefur 73f4e79b47 prosody: Set a luasocket global, fixes undefined global access in loop() (pending util.startup) 11 years ago
Matthew Wild 1714d99f76 statsmanager, prosody: New core module and API for gathering statistics about the running server 11 years ago
Kim Alvefur 887f411c4e prosody: Make getfenv() replacement for require() sandboxing local to avoid polluting the globals table 11 years ago
Kim Alvefur 55217ae785 prosody: Fix getfenv replacement for Lua 5.2 12 years ago
Kim Alvefur 51dce49162 prosody: Check dependencies later in the startup sequence 12 years ago
Kim Alvefur 15f4a95345 prosody: Store the config file name so the same file can be used when reloading 12 years ago
Kim Alvefur f06c9f7d0d Backout ae48bf828f21 13 years ago