Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.startup: Integrate util.promise with net.server main loop | Kim Alvefur | 2019-01-05 | 1 | -0/+8 |
| | |||||
* | util.startup: Understand -h, -? as --help in prosodyctl but ignore | Kim Alvefur | 2021-10-25 | 1 | -1/+1 |
| | | | | | prosodyctl -h showing an error was not very helpful, especially since prosodyctl shows its help for any unknown (or none) command. | ||||
* | util.startup: Show brief usage on `prosody -h|-?|--help` | Kim Alvefur | 2021-10-25 | 1 | -1/+8 |
| | | | | | Seems more suitable than asking if prosodyctl was meant to be used, or going ahead and starting. | ||||
* | util.startup: Skip config readability check in migrator (thanks eTaurus) | Kim Alvefur | 2021-10-23 | 1 | -1/+1 |
| | | | | | | This field is empty for reasons when invoked by prosody-migrator, which threw an error: > bad argument #1 to 'open' (string expected, got nil) | ||||
* | util.startup: Only ask if 'prosodyctl' was meant instead of 'prosody' (fix ↵ | Kim Alvefur | 2021-10-12 | 1 | -1/+3 |
| | | | | #1692) | ||||
* | util.startup: Allow separate command line argument settings for prosody and ↵ | Kim Alvefur | 2021-09-30 | 1 | -6/+11 |
| | | | | | | | prosodyctl Makes it clearer that prosody does not take -v atm, as well as how prosodyctl does not take the demonization flags. | ||||
* | prosodyctl: Add support for -v/--verbose to enable debug logging | Kim Alvefur | 2021-09-30 | 1 | -2/+4 |
| | | | | More convenient than the environment variable. | ||||
* | Merge 0.11->trunk | Matthew Wild | 2021-05-13 | 1 | -1/+7 |
|\ | |||||
| * | util.startup: Set more aggressive defaults for GC | Matthew Wild | 2021-05-07 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | Testing has demonstrated that the default GC parameters are not sufficient to prevent runaway memory growth when running under Lua 5.2 and Lua 5.3. Setting the GC speed to 500 was tested on Lua versions 5.1->5.4 and did not display unbounded memory growth. | ||||
| * | util.startup: Configure the GC on startup, using the config or built-in defaults | Matthew Wild | 2020-06-15 | 1 | -0/+17 |
| | | |||||
* | | util.startup: Make installer_plugin_path relative to data directory | Kim Alvefur | 2021-01-24 | 1 | -3/+2 |
| | | | | | | | | | | | | Having it relative to current working directory is problematic since this depends on how Prosody was started and changes to the data directory during startup (but after this point). | ||||
* | | util.startup: Don't create installer plugin path (as root) | Kim Alvefur | 2021-01-24 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since this runs before dropping root, the directory ends up being owned by root, resulting in luarocks failing to install anything, since by then it would be running as the prosody user. luarocks creates this directory if needed, so creating it during startup is not necessary. One potential issue is if the directory is somewhere where Prosody can't write, but then you will simply have to create it yourself with the appropriate permissions. | ||||
* | | util.startup: Handle missing nparams field from debug info (not present in 5.1) | Matthew Wild | 2020-10-11 | 1 | -2/+3 |
| | | |||||
* | | util.startup: Include arguments in function string representation | Kim Alvefur | 2020-10-09 | 1 | -2/+8 |
| | | | | | | | | | | | | | | Improves usability of the console when digging around the internals. No specific rationale for the function<file:line>(args) format, it looked best of the variants I tried. | ||||
* | | util.startup: Retrieve less data for function string representation | Kim Alvefur | 2020-10-09 | 1 | -1/+1 |
| | | | | | | | | debug.getinfo(f) collects more info than what is needed here. | ||||
* | | util.startup: Save the path used by the installer to prosody.paths | Kim Alvefur | 2020-10-07 | 1 | -0/+1 |
| | | | | | | | | | | | | Makes it easier for other parts of the code to use this for things, such as determining whether a certain module is from this path or from elsewhere. | ||||
* | | util.startup: Fix startup failure if CFG_DATADIR is unset | Kim Alvefur | 2020-10-05 | 1 | -1/+1 |
| | | | | | | | | As is normal when running from source | ||||
* | | util.startup: Re-enable installer path setup | Kim Alvefur | 2020-10-05 | 1 | -2/+2 |
| | | |||||
* | | util.startup: Put 'installer_plugin_path' under data directory by default | Kim Alvefur | 2020-10-05 | 1 | -1/+1 |
| | | | | | | | | | | Fixes issue where it ends up creating this in $PWD, which might be ~prosody, ~you or /, depending on how it's invoked. | ||||
* | | util.startup: Init util.error with defaults if none given | Matthew Wild | 2020-08-28 | 1 | -1/+1 |
| | | |||||
* | | util.error: Allow optional tracebacks to be injected on errors | Matthew Wild | 2020-08-28 | 1 | -0/+6 |
| | | | | | | | | This allows extra debug info to be provided for development purposes. | ||||
* | | Merge 0.11->trunk | Kim Alvefur | 2020-06-23 | 1 | -1/+0 |
|\| | |||||
| * | util.startup: Remove duplicated initialization of logging (fix #1527) | Kim Alvefur | 2020-06-22 | 1 | -1/+0 |
| | | |||||
* | | util.argparse: Move exiting and error to util.startup | Kim Alvefur | 2020-06-17 | 1 | -1/+11 |
| | | | | | | | | | | | | | | | | It's not so nice to have a library that exits the entire application from under you, so this and the error reporting belongs in util.startup. The argparse code was originally in util.startup but moved out in 1196f1e8d178 but the error handling should have stayed. | ||||
* | | util.startup: Configure the GC on startup, using the config or built-in defaults | Matthew Wild | 2020-06-15 | 1 | -0/+17 |
| | | |||||
* | | 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 |