summaryrefslogtreecommitdiff
path: root/scripts/rabbitmq-plugins.bat
Commit message (Collapse)AuthorAgeFilesLines
* Switch to Mozilla Public License 2.0 (MPL 2.0)dcorbacho2020-07-101-12/+3
|
* Re-enable CTL_ERL_ARGS and dist port settingsLuke Bakken2020-06-301-0/+2
| | | | Fixes #2394
* Update copyright (year 2020)Jean-Sébastien Pédron2020-03-101-1/+1
|
* (c) bumpMichael Klishin2019-12-291-1/+1
|
* Move most of shell scripts to Erlang codeJean-Sébastien Pédron2019-12-111-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A large part of the rabbitmq-server(8) and CLI scripts, both Bourne-shell and Windows Batch versions, was moved to Erlang code and the RabbitMQ startup procedure was reorganized to be closer to a regular Erlang application. A new application called `rabbitmq_prelaunch` is responsible for: 1. Querying the environment variables to initialize important variables (using the new `rabbit_env` module in rabbitmq-common). 2. Checking the compatibility with the Erlang/OTP runtime. 3. Configuring Erlang distribution. 5. Writing the PID file. The application is started early (i.e. it is started before `rabbit`). The `rabbit` application runs the second half of the prelaunch sequence at the beginning of the application `start()` function. This second phase is responsible for the following steps: 1. Preparing the feature flags registry. 2. Reading and validating the configuration. 3. Configuring logging. 4. Running the various cluster checks. In addition to this prelaunch sequence, the `rabbit` application start procedure ends with a "postlaunch" sequence which takes care of starting enabled plugins. Thanks to this, RabbitMQ can be started with `application:start(rabbit)` as any other Erlang application. The only caveats are: * Mnesia must be stopped at the time `rabbit_prelaunch` is started, and must remain stopped when `rabbit` is started, to allow the Erlang distribution setup and cluster checks. `rabbit` takes care of starting Mnesia. * Likewise for Ra, because it relies on the `ra` application environment to be configured. Transitioning from scripts to Erlang code has the following benefits: * RabbitMQ start behavior should be identical between Unix and Windows. Also, features should be on par now. For instance, RabbitMQ now writes a PID file on Windows, like it always did on Unix-based systems. * The difference between published packages and a development environment are greatly reduced. In fact, we removed all the "if this is a dev working copy, then ..." blocks. As part of that, the `rabbit` application is now treated like its plugins: it is packaged as an `.ez` archive and written to the `plugins` directory (even though it is not technically a plugin). Also in a development copy, the CLI is copied to the top-level project. So when testing a plugin for instance, the CLI to use is `sbin/rabbitmqctl` in the current directory, not the master copy in `rabbit/scripts`. * As a consequence of the previous two points, maintaining and testing on Windows is now made easy. It should even be possible to setup CI on Windows. * There are less issues with paths containing non-US-ASCII characters, which can happen on Windows because RabbitMQ stores its data in user directories by default. This process brings at least one more benefit: we now have early logging during this prelaunch phase, which eases diagnostics and debugging. There are also behavior changes: * The new format configuration files used to be converted to an Erlang-term-based file by the Cuttlefish CLI. To do that, configuration schemas were copied to a temporary directory and the generated configuration file was written to RabbitMQ data directory. Now, Cuttlefish is used as a library: everything happens in memory. No schemas are copied, no generated configuration is written to disk. * The PID file is removed when the Erlang VM exits. * The `rabbit_config` module was trimmed significantly because most of the configuration handling is done in `rabbit_prelaunch_conf` now. * The RabbitMQ nodename does not appear on the command line, therefore it is missing from ps(1) and top(1) output. * The `rabbit:start()` function will probably behave differently in some ways because it defers everything to the Erlang application controller (instead of reimplementing it).
* scripts/*.bat: Exit with CLI's exit status, not 1Jean-Sébastien Pédron2019-08-301-1/+1
| | | | | This way the scripts really propagate the intended exit status to the outer world.
* URL CleanupSpring Operator2019-03-121-1/+1
| | | | | | | | | | | | This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener). # Fixed URLs ## Fixed Success These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended. * http://www.mozilla.org/MPL/ migrated to: https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/) result 301).
* Fixed years in copyrightSamuel NELA2019-01-131-1/+1
|
* Set node name for rabbit_prelaunch step in Windows scriptsLuke Bakken2018-10-191-1/+0
| | | | Fixes #1508
* Remove unused -nodename argument to erl, ensure that RABBITMQ_NAME_TYPE is ↵Luke Bakken2018-10-191-1/+1
| | | | used correctly in Windows batch files
* Improve error reporting in rabbitmq-plugins.batArtem Zinenko2018-10-171-0/+4
|
* Don't force --formatter=plugins on rabbitmq-plugins commandsMichael Klishin2018-09-281-1/+1
| | | | | | | They already use the correct one. Per discussion with @hairyhum. [#160792758]
* Revert "Merge rabbitmq-server-1508 to master"Michael Klishin2018-02-161-1/+1
|
* Remove unused -nodename argument to erl, ensure that RABBITMQ_NAME_TYPE is ↵Luke Bakken2018-02-151-1/+1
| | | | used correctly in Windows batch files
* Add DIST_PORT settings to Windows batch filesLuke Bakken2018-01-301-0/+2
| | | | (cherry picked from commit 0cd2fbdda7e9dea7cd651020478d5981e714ad44)
* Run escript and use RABBITMQ_CTL_ERL_ARGS env variableLuke Bakken2017-12-291-11/+10
| | | | Fixes #1461
* rabbitmq-plugins.bat: Use `escript.exe` to run `rabbitmq-plugins`Jean-Sébastien Pédron2016-11-081-1/+1
| | | | [#131353583]
* Windows integration for plugins and diagnosticsDaniil Fedotov2016-11-031-9/+10
|
* Use RABBITMQ_HOME to set the path to RabbitMQ ebin directoryJean-Sébastien Pédron2016-01-261-1/+1
| | | | | | | | Compared to the script's parent directory (stored in TDP0), RABBITMQ_HOME is converted to a short filename to avoid non-ASCII in the path. Fixes #493.
* Disable erl_crash.dump in rabbitmqctl and rabbitmq-pluginsJean-Sébastien Pédron2015-12-141-0/+5
| | | | | Crash dumps are disabled by default only: if the user set $ERL_CRASH_DUMP_SECONDS, his setting is honored.
* scripts: Pass script name to rabbitmq-env.batJean-Sébastien Pédron2015-10-301-1/+1
|
* Remove exec bit from non-executable scriptsJean-Sébastien Pédron2015-10-201-0/+0
|
* Load rabbitmq-env.bat in a cwd-independent wayMichael Klishin2015-07-211-1/+1
|
* Merge branch 'rabbitmq-server-154' of ↵Michael Klishin2015-07-011-19/+4
|\ | | | | | | https://github.com/Jakauppila/rabbitmq-server into Jakauppila-rabbitmq-server-154
| * Windows batch file changes to support -env, -defaults, and -conf ↵Jakauppila2015-06-231-23/+4
| | | | | | | | | | | | | | functionality present on *nix Mimicked the behavior of the -env, -defaults, and -conf scripts available on *nix
| * Add 'rabbitmq-env.bat' execution in rabbitmq-plugins.batJakauppila2015-05-121-0/+4
| |
* | (c) yearMichael Klishin2015-05-241-1/+1
|/
* When ERLANG_HOME is not set, exit with code 1Michael Klishin2015-02-251-1/+1
|
* stable to defaultSimon MacMullen2015-01-291-1/+10
|\
| * adds RABBITMQ_CTL_ERL_ARGS to rabbitmq-pluginsAlvaro Videla2015-01-281-1/+11
| |
* | First pass at having ctl and plugins not start epmd. This can cause problems ↵Simon MacMullen2014-10-231-9/+1
|/ | | | though if we are contacting a remote node, or removing a cluster node offline.
* Correct how to refer to environment variables.Simon MacMullen2014-10-171-1/+1
|
* Add RABBITMQ_USE_LONGNAME. Based on a patch from Marcos Diez but with fixes ↵Simon MacMullen2014-10-171-1/+9
| | | | for the new way rabbitmqctl starts distribution, refactoring of common stuff into rabbitmq-env, not trimming the hostname, etc.
* Merge default into bug24926Tim Watson2014-03-181-1/+5
|\
| * Ensure we pass the nodename on windowsTim Watson2013-11-051-1/+5
| |
* | Update copyright for 2014Simon MacMullen2014-03-171-1/+1
|/
* s/VMware/GoPivotal/gSimon MacMullen2013-07-011-2/+2
|
* Take note of RABBITMQ_SERVICENAME, same as rabbitmq-service.bat does.Simon MacMullen2013-02-151-1/+5
|
* Update copyright 2013Emile Joubert2013-01-231-1/+1
|
* More randomness for temporary node names on windowsEmile Joubert2012-08-081-1/+1
|
* Remove whitespaceEmile Joubert2012-06-221-3/+3
|
* Merge bug24924Simon MacMullen2012-06-011-1/+1
|\
| * split rabbit_plugins into client and server side modulesTim Watson2012-05-161-1/+1
| |
* | do not overwrite RABBITMQ_PLUGINS_DIR on windowsTim Watson2012-05-041-1/+3
|/
* Update copyright 2012Emile Joubert2012-02-021-1/+1
|
* :s/PLUGINS_DIST_DIR/PLUGINS_DIRAlexandru Scvortov2011-09-291-2/+2
| | | | | Only in rabbitmq-server, because that variable in rabbitmq-public-umbrella has a different use.
* make both batch files use the same enabled_plugins fileAlexandru Scvortov2011-09-261-0/+4
|
* plugins-dist -> pluginsAlexandru Scvortov2011-09-231-1/+1
|
* don't use the plugins directoryAlexandru Scvortov2011-09-221-2/+5
|
* rename rabbitmq-plugin to rabbitmq-pluginsAlexandru Scvortov2011-09-221-0/+44