Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.startup: Break out command line argument parsing into util.argparse | Kim Alvefur | 2020-02-19 | 1 | -49/+5 |
| | | | | | This will allow using it from other places such as prosodyctl sub-commands and plugins | ||||
* | util.startup: expose current process type (prosody/prosodyctl) in the global ↵ | Matthew Wild | 2020-01-28 | 1 | -0/+2 |
| | | | | prosody object | ||||
* | Merge 0.11->trunk | Matthew Wild | 2020-01-19 | 1 | -2/+1 |
|\ | |||||
| * | util.startup: Ensure prosody.opts exists even when no options provided0.11.5 | Matthew Wild | 2020-01-19 | 1 | -1/+1 |
| | | |||||
| * | util.startup: Remove accidentally-committed debugging | Matthew Wild | 2020-01-19 | 1 | -1/+0 |
| | | |||||
* | | Merge 0.11->trunk | Matthew Wild | 2020-01-19 | 1 | -37/+39 |
|\| | |||||
| * | util.startup: Fix logic to make --config work again | Matthew Wild | 2020-01-19 | 1 | -37/+39 |
| | | |||||
* | | Merge 0.11->trunk | Matthew Wild | 2020-01-19 | 1 | -6/+60 |
|\| | |||||
| * | prosody/util.startup: Switch to parse_args() for --root and --config | Matthew Wild | 2020-01-19 | 1 | -6/+6 |
| | | |||||
| * | util.startup: Add startup step for parsing command-line options | Matthew Wild | 2020-01-19 | 1 | -0/+54 |
| | | |||||
* | | util.startup: Ignore unused errno variable [luacheck] | Kim Alvefur | 2019-12-23 | 1 | -1/+1 |
| | | |||||
* | | util.startup: Disable plugin installer path creation for now (see comments) | Kim Alvefur | 2019-11-09 | 1 | -2/+4 |
| | | |||||
* | | util.startup: Split plugin installer path setup into a separate function | Kim Alvefur | 2019-11-09 | 1 | -4/+11 |
| | | |||||
* | | Merge 0.11->trunk | Kim Alvefur | 2019-11-04 | 1 | -2/+9 |
|\| | |||||
| * | util.startup: Ensure prosody.paths are absolute (see #1430) | Kim Alvefur | 2019-11-04 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | Normally these paths are injected into the installed 'prosody' executable as absolute paths, but it is possible to override at least the config path via environment variable or command line argument. This makes sure a path relative to pwd stays relative to that instead of the data directory. | ||||
| * | util.startup: Update config path (fixes #1430) | Kim Alvefur | 2019-11-03 | 1 | -1/+2 |
| | | |||||
* | | Merge mod-installer (2019 GSoC by João Duarte) | Matthew Wild | 2019-08-19 | 1 | -1/+7 |
|\ \ | |||||
| * | | util.startup: Changed the way util.paths.complement_lua_path was being accessed | João Duarte | 2019-08-16 | 1 | -1/+1 |
| | | | |||||
| * | | util.startup: Reorganized code at setup_plugindir | João Duarte | 2019-08-01 | 1 | -3/+3 |
| | | | |||||
| * | | util.startup: Now calls a function to complement lua's path/cpath | João Duarte | 2019-08-01 | 1 | -13/+2 |
| | | | |||||
| * | | util.startup: setup_plugindir now also checks package.cpath for duplicates | João Duarte | 2019-08-01 | 1 | -2/+4 |
| | | | |||||
| * | | util.startup: Directly calling lfs.currentdir instead of storing it in a ↵ | João Duarte | 2019-08-01 | 1 | -2/+1 |
| | | | | | | | | | | | | local variable | ||||
| * | | util.startup: Removed/rewrote comments at setup_plugindir | João Duarte | 2019-08-01 | 1 | -7/+2 |
| | | | |||||
| * | | util.startupt: setup_plugindir now uses lfs.mkdir to check/create directories | João Duarte | 2019-08-01 | 1 | -4/+1 |
| | | | |||||
| * | | util.startupt: I'm now using the resolve_relative_path function from ↵ | João Duarte | 2019-08-01 | 1 | -10/+2 |
| | | | | | | | | | | | | util/paths at the setup_plugindir function | ||||
| * | | util.startup: Improved how .set_plugindir updates prosody.paths.plugins, ↵ | João Duarte | 2019-07-26 | 1 | -11/+27 |
| | | | | | | | | | | | | package.path and package.cpath | ||||
| * | | util.startup: .setup_plugindir now checks if the specified directory for ↵ | João Duarte | 2019-07-26 | 1 | -4/+4 |
| | | | | | | | | | | | | custom plugins exists, and creates it if it doesn't | ||||
| * | | util.startup: The .setup_plugindir function now correctly sets a ↵ | João Duarte | 2019-07-26 | 1 | -10/+16 |
| | | | | | | | | | | | | default/specified path for custom plugins | ||||
| * | | util.startup: Removed unnecessary if clause at startup.set_plugindir | João Duarte | 2019-07-25 | 1 | -9/+7 |
| | | | |||||
| * | | util.startup: Now it also loads default or configured paths to custom plugin ↵ | João Duarte | 2019-07-24 | 1 | -0/+12 |
| | | | | | | | | | | | | directories and creates them | ||||
* | | | util.startup: Remove tostring call from logging | Kim Alvefur | 2019-07-30 | 1 | -2/+2 |
|/ / | | | | | | | Taken care of by loggingmanager now | ||||
* | | util.startup: Don't die if there are no config warnings to log (thanks buildbot) | Matthew Wild | 2019-03-20 | 1 | -2/+4 |
| | | |||||
* | | util.startup: Log configuration warnings at startup | Matthew Wild | 2019-03-20 | 1 | -0/+6 |
| | | |||||
* | | util.startup: Give function a more generic name so it can apply to all warnings | Matthew Wild | 2019-03-20 | 1 | -3/+3 |
|/ | |||||
* | util.startup: Always reload logging after config (fixes #1284) | Kim Alvefur | 2019-01-06 | 1 | -0/+3 |
| | | | | | This chancged in 6e24a69b03af likely because of confusion about the `reopen-log-files` event which was fired but never hooked. | ||||
* | util.startup: Set flag when config fully loaded | Matthew Wild | 2018-08-19 | 1 | -0/+1 |
| | |||||
* | util.startup: Add a comment marking some compat code | Kim Alvefur | 2018-07-01 | 1 | -0/+1 |
| | |||||
* | Merge 0.10->trunk | Matthew Wild | 2018-06-07 | 1 | -1/+1 |
| | |||||
* | util.startup: Don't initialize global protection for prosodyctl, for now | Matthew Wild | 2018-04-18 | 1 | -1/+0 |
| | |||||
* | util.startup: Force console logging before initializing logging (see ↵ | Kim Alvefur | 2018-04-14 | 1 | -1/+1 |
| | | | | 2fdeb979cc7c) | ||||
* | util.startup: Initialize logging immediately after configuration is read ↵ | Matthew Wild | 2018-04-10 | 1 | -1/+2 |
| | | | | (which is how it used to work) | ||||
* | util.startup/prosodyctl: Delay enabling global protection until last ↵ | Kim Alvefur | 2018-04-06 | 1 | -1/+1 |
| | | | | (silences warning about CFG_PLUGINDIR) | ||||
* | util.startup: Fix traceback due to both plugin path becoming nil if ↵ | Kim Alvefur | 2018-04-06 | 1 | -1/+1 |
| | | | | plugin_paths is unset | ||||
* | Fix spelling throughout the codebase [codespell] | Kim Alvefur | 2018-02-04 | 1 | -1/+1 |
| | |||||
* | util.startup: Set up event hooks for reloading logging here instead of in ↵ | Kim Alvefur | 2018-04-05 | 1 | -1/+6 |
| | | | | loggingmanager to simplify startup dependencies | ||||
* | util.startup: Initialize prosody.log / _G.log here instead of in ↵ | Kim Alvefur | 2018-04-05 | 1 | -1/+5 |
| | | | | loggingmanager to reduce dependencies | ||||
* | util.startup: Initialize logging earlier, so that messages from eg ↵ | Kim Alvefur | 2018-04-05 | 1 | -1/+1 |
| | | | | net.server are shown | ||||
* | util.startup: Access the hosts table via the prosody global for consistency | Kim Alvefur | 2018-03-29 | 1 | -1/+1 |
| | |||||
* | util.startup: Use own logger instead of the possibly not available yet _G.log | Kim Alvefur | 2018-04-05 | 1 | -0/+1 |
| | |||||
* | util.startup: Remove luacheck directive for ignoring use of _G.log which ↵ | Kim Alvefur | 2018-04-05 | 1 | -3/+0 |
| | | | | might not exist until loggingmanager has been loaded |