Commit Graph

71 Commits (9be5cb3fbdffc7c19ade04d635501cbea1be3af7)

Author SHA1 Message Date
Kim Alvefur bd36651336 util.startup: Remove duplicated initialization of logging (fix #1527) 6 years ago
Kim Alvefur 2b2f9903ae util.argparse: Move exiting and error to util.startup 6 years ago
Matthew Wild 758df8e14d util.startup: Configure the GC on startup, using the config or built-in defaults 6 years ago
Matthew Wild 73355a4f31 util.startup: Ensure prosody.opts exists even when no options provided 6 years ago
Matthew Wild 0d5f5c9229 util.startup: Remove accidentally-committed debugging 6 years ago
Matthew Wild 704acb8b7a util.startup: Fix logic to make --config work again 6 years ago
Matthew Wild e52171b0cd prosody/util.startup: Switch to parse_args() for --root and --config 6 years ago
Matthew Wild ec3865fa9d util.startup: Add startup step for parsing command-line options 6 years ago
Kim Alvefur e199091987 util.startup: Break out command line argument parsing into util.argparse 6 years ago
Matthew Wild 028a6e499f util.startup: expose current process type (prosody/prosodyctl) in the global prosody object 6 years ago
Kim Alvefur bbb1aae80f util.startup: Ignore unused errno variable [luacheck] 6 years ago
Kim Alvefur 91156ab5d9 util.startup: Ensure prosody.paths are absolute (see #1430) 6 years ago
Kim Alvefur 5e4bc6299b util.startup: Update config path (fixes #1430) 6 years ago
Kim Alvefur f10cf81e37 util.startup: Disable plugin installer path creation for now (see comments) 6 years ago
Kim Alvefur 829aaea2fd util.startup: Split plugin installer path setup into a separate function 6 years ago
João Duarte 68f40ef5ff util.startup: Changed the way util.paths.complement_lua_path was being accessed 6 years ago
João Duarte 9ef4fbdbf8 util.startup: Reorganized code at setup_plugindir 7 years ago
João Duarte f088ddc713 util.startup: Now calls a function to complement lua's path/cpath 7 years ago
João Duarte f27cd24e27 util.startup: setup_plugindir now also checks package.cpath for duplicates 7 years ago
João Duarte d2fc41c9e7 util.startup: Directly calling lfs.currentdir instead of storing it in a local variable 7 years ago
João Duarte a3f41c2b14 util.startup: Removed/rewrote comments at setup_plugindir 7 years ago
João Duarte ded9e843e3 util.startupt: setup_plugindir now uses lfs.mkdir to check/create directories 7 years ago
João Duarte 92fafa3343 util.startupt: I'm now using the resolve_relative_path function from util/paths at the setup_plugindir function 7 years ago
João Duarte ad26c41fa6 util.startup: Improved how .set_plugindir updates prosody.paths.plugins, package.path and package.cpath 7 years ago
João Duarte 093110478e util.startup: .setup_plugindir now checks if the specified directory for custom plugins exists, and creates it if it doesn't 7 years ago
João Duarte 6307133669 util.startup: The .setup_plugindir function now correctly sets a default/specified path for custom plugins 7 years ago
João Duarte c20cc1a17b util.startup: Removed unnecessary if clause at startup.set_plugindir 7 years ago
João Duarte 20f233099e util.startup: Now it also loads default or configured paths to custom plugin directories and creates them 7 years ago
Kim Alvefur ce17a974fc util.startup: Always reload logging after config (fixes #1284) 7 years ago
Kim Alvefur 57b3a1dc87 util.startup: Remove tostring call from logging 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