Commit Graph

33 Commits (eeb98faa3a09ab9bdfeaa8ed9d2ff3d1d3a94de9)

Author SHA1 Message Date
Kim Alvefur ce17a974fc util.startup: Always reload logging after config (fixes #1284) 7 years ago
Matthew Wild cbaa78ecca util.startup: Set flag when config fully loaded 8 years ago
Kim Alvefur 62c13b733a util.startup: Add a comment marking some compat code 8 years ago
Matthew Wild 5e9616894f util.startup: Don't initialize global protection for prosodyctl, for now 8 years ago
Kim Alvefur 97a34d6199 util.startup: Force console logging before initializing logging (see 2fdeb979cc7c) 8 years ago
Matthew Wild 76a81554ff util.startup: Initialize logging immediately after configuration is read (which is how it used to work) 8 years ago
Kim Alvefur e91ebc0e78 util.startup/prosodyctl: Delay enabling global protection until last (silences warning about CFG_PLUGINDIR) 8 years ago
Kim Alvefur 6f810e2837 util.startup: Fix traceback due to both plugin path becoming nil if plugin_paths is unset 8 years ago
Kim Alvefur 3ec060fc0c Fix spelling throughout the codebase [codespell] 8 years ago
Kim Alvefur b594f3b843 util.startup: Set up event hooks for reloading logging here instead of in loggingmanager to simplify startup dependencies 8 years ago
Kim Alvefur eacc7b0dd3 util.startup: Initialize prosody.log / _G.log here instead of in loggingmanager to reduce dependencies 8 years ago
Kim Alvefur 17a3770292 util.startup: Initialize logging earlier, so that messages from eg net.server are shown 8 years ago
Kim Alvefur 38a5e6ec34 util.startup: Access the hosts table via the prosody global for consistency 8 years ago
Kim Alvefur f232c3cf3d util.startup: Use own logger instead of the possibly not available yet _G.log 8 years ago
Kim Alvefur 06d340adc5 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 c67280b951 util.startup: Initialize the 'prosody' global earlier (various things needs the global util.events instance) 8 years ago
Kim Alvefur 8a2aef3598 util.startup: Factor out processing of plugin and data paths into a separate functions 8 years ago
Kim Alvefur 7e64fa124a configmanager: Move firing of the 'config-reloaded' event into util.startup (fixes #1117) 8 years ago
Kim Alvefur 9cd0153dd7 util.startup: Read version for prosodyctl (restores version in 'about' command) 8 years ago
Matthew Wild 59e03259d1 prosody, util.startup: Switch from async.once() to long-lived thread, to avoid GC 8 years ago
Matthew Wild 8858b07103 util.startup: Expose make_host() function 8 years ago
Matthew Wild 95737ca950 util.startup: Expose user switching information via prosody global object 8 years ago
Matthew Wild 34473917a1 util.startup: Fix variable usage [luacheck] 8 years ago
Matthew Wild 2ce0219833 util.startup: Move original_logging_config to a local variable 8 years ago
Matthew Wild 96c28157c1 util.startup: Restore user switching 8 years ago
Matthew Wild 496b5277c3 util.startup: Fix chdir() to use correct path variable 8 years ago
Matthew Wild 2846eb2eb2 util.startup: Execute startup routine inside async context 8 years ago
Kim Alvefur c7116e7ac8 util.startup: Remove unused loop variable [luacheck] 8 years ago
Kim Alvefur 1ee365769e util.startup: Ignore various globals being read and written as part of startup [luacheck] 8 years ago
Kim Alvefur 963e509586 util.startup: Trim trailing whitespace [luacheck] 8 years ago
Matthew Wild 0003738312 util.startup: Oops, uncomment accidentally-commented code 8 years ago
Matthew Wild 3a8c72b72e prosody, prosodyctl, util.startup: Finally factor out startup-related and common code into a separate module 8 years ago
Emmanuel Gil Peyrot eb231e9eab configmanager: Remove support for multiple parsers, fixes #852. 9 years ago
Kim Alvefur ebd348e104 prosody: Silence warnings about setting the globals 'server' and 'socket' [luacheck] 9 years ago
Kim Alvefur 18e2d68459 prosody: Trim trailing whitespace 9 years ago
Kim Alvefur 49fbb1c493 prosody: Fix typo 9 years ago
Kim Alvefur 82da87e629 prosody: Add annotations to ignore various globals and unused arguments [luacheck] 9 years ago
Kim Alvefur 850f75497a prosody: Set session tables on the 'prosody' global first, then export them as globals 9 years ago
Emmanuel Gil Peyrot c6048a7cb4 Update every link to the documentation to use HTTPS 10 years ago
Matthew Wild 42f15c4eb2 prosody, prosodyctl: Allow setting CFG_* variables via Lua interpreter before loading Prosody. Fixes #308. 10 years ago
Matthew Wild ec70d37770 prosody: Allow prosody.shutdown() to take an exit code for the process (thanks daurnimator) 10 years ago
Matthew Wild ed3b57fd19 prosody: Don't silently ignore unknown command-line options 10 years ago
Kim Alvefur cb6f7a82c9 prosody: Fix sleep call that relied on the no longer existing socket global 10 years ago
Kim Alvefur 2331a3d4b4 prosody: Set a luasocket global, fixes undefined global access in loop() (pending util.startup) 11 years ago
Matthew Wild a88d04d1c4 statsmanager, prosody: New core module and API for gathering statistics about the running server 11 years ago
Kim Alvefur b72a485cdd prosody: Make getfenv() replacement for require() sandboxing local to avoid polluting the globals table 11 years ago
Kim Alvefur cd0acc10f7 prosody: Fix getfenv replacement for Lua 5.2 11 years ago
Kim Alvefur 1f74845db7 prosody: Check dependencies later in the startup sequence 12 years ago
Kim Alvefur 276f7f39a2 prosody: Store the config file name so the same file can be used when reloading 12 years ago
Kim Alvefur f06c9f7d0d Backout ae48bf828f21 12 years ago