Skip to content

Commit

Permalink
List #4588 in 3.10.0 release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Apr 22, 2022
1 parent 85c8c3e commit 14d1af2
Show file tree
Hide file tree
Showing 83 changed files with 1,751 additions and 10,646 deletions.
42 changes: 21 additions & 21 deletions deps/rabbit/scripts/rabbitmq-defaults.bat
@@ -1,21 +1,21 @@
@echo off

set SASL_BOOT_FILE=start_sasl
set CLEAN_BOOT_FILE=start_clean
set BOOT_MODULE=rabbit

if "!RABBITMQ_BASE!"=="" (
set RABBITMQ_BASE=!APPDATA!\RabbitMQ
) else (
set RABBITMQ_BASE=!RABBITMQ_BASE:"=!
)

if not exist "!RABBITMQ_BASE!" (
mkdir "!RABBITMQ_BASE!"
)

if "!RABBITMQ_CONF_ENV_FILE!"=="" (
if "!CONF_ENV_FILE!"=="" (
set CONF_ENV_FILE=!RABBITMQ_BASE!\rabbitmq-env-conf.bat
)
)
@echo off

set SASL_BOOT_FILE=start_sasl
set CLEAN_BOOT_FILE=start_clean
set BOOT_MODULE=rabbit

if "!RABBITMQ_BASE!"=="" (
set RABBITMQ_BASE=!APPDATA!\RabbitMQ
) else (
set RABBITMQ_BASE=!RABBITMQ_BASE:"=!
)

if not exist "!RABBITMQ_BASE!" (
mkdir "!RABBITMQ_BASE!"
)

if "!RABBITMQ_CONF_ENV_FILE!"=="" (
if "!CONF_ENV_FILE!"=="" (
set CONF_ENV_FILE=!RABBITMQ_BASE!\rabbitmq-env-conf.bat
)
)
110 changes: 55 additions & 55 deletions deps/rabbit/scripts/rabbitmq-diagnostics.bat
@@ -1,55 +1,55 @@
@echo off
REM This Source Code Form is subject to the terms of the Mozilla Public
REM License, v. 2.0. If a copy of the MPL was not distributed with this
REM file, You can obtain one at https://mozilla.org/MPL/2.0/.
REM
REM Copyright (c) 2007-2020 VMware, Inc. or its affiliates. All rights reserved.
REM

REM Scopes the variables to the current batch file
setlocal

rem Preserve values that might contain exclamation marks before
rem enabling delayed expansion
set TDP0=%~dp0
set STAR=%*
setlocal enabledelayedexpansion

REM Get default settings with user overrides for (RABBITMQ_)<var_name>
REM Non-empty defaults should be set in rabbitmq-env
call "%TDP0%\rabbitmq-env.bat" %~n0

if not exist "!ERLANG_HOME!\bin\erl.exe" (
echo.
echo ******************************
echo ERLANG_HOME not set correctly.
echo ******************************
echo.
echo Please either set ERLANG_HOME to point to your Erlang installation or place the
echo RabbitMQ server distribution in the Erlang lib folder.
echo.
exit /B 1
)

REM Disable erl_crash.dump by default for control scripts.
if not defined ERL_CRASH_DUMP_SECONDS (
set ERL_CRASH_DUMP_SECONDS=0
)

"!ERLANG_HOME!\bin\erl.exe" +B ^
-boot !CLEAN_BOOT_FILE! ^
-noinput -noshell -hidden -smp enable ^
!RABBITMQ_CTL_ERL_ARGS! ^
-kernel inet_dist_listen_min !RABBITMQ_CTL_DIST_PORT_MIN! ^
-kernel inet_dist_listen_max !RABBITMQ_CTL_DIST_PORT_MAX! ^
-run escript start ^
-escript main rabbitmqctl_escript ^
-extra "%RABBITMQ_HOME%\escript\rabbitmq-diagnostics" !STAR!

if ERRORLEVEL 1 (
exit /B %ERRORLEVEL%
)

EXIT /B 0

endlocal
@echo off
REM This Source Code Form is subject to the terms of the Mozilla Public
REM License, v. 2.0. If a copy of the MPL was not distributed with this
REM file, You can obtain one at https://mozilla.org/MPL/2.0/.
REM
REM Copyright (c) 2007-2020 VMware, Inc. or its affiliates. All rights reserved.
REM

REM Scopes the variables to the current batch file
setlocal

rem Preserve values that might contain exclamation marks before
rem enabling delayed expansion
set TDP0=%~dp0
set STAR=%*
setlocal enabledelayedexpansion

REM Get default settings with user overrides for (RABBITMQ_)<var_name>
REM Non-empty defaults should be set in rabbitmq-env
call "%TDP0%\rabbitmq-env.bat" %~n0

if not exist "!ERLANG_HOME!\bin\erl.exe" (
echo.
echo ******************************
echo ERLANG_HOME not set correctly.
echo ******************************
echo.
echo Please either set ERLANG_HOME to point to your Erlang installation or place the
echo RabbitMQ server distribution in the Erlang lib folder.
echo.
exit /B 1
)

REM Disable erl_crash.dump by default for control scripts.
if not defined ERL_CRASH_DUMP_SECONDS (
set ERL_CRASH_DUMP_SECONDS=0
)

"!ERLANG_HOME!\bin\erl.exe" +B ^
-boot !CLEAN_BOOT_FILE! ^
-noinput -noshell -hidden -smp enable ^
!RABBITMQ_CTL_ERL_ARGS! ^
-kernel inet_dist_listen_min !RABBITMQ_CTL_DIST_PORT_MIN! ^
-kernel inet_dist_listen_max !RABBITMQ_CTL_DIST_PORT_MAX! ^
-run escript start ^
-escript main rabbitmqctl_escript ^
-extra "%RABBITMQ_HOME%\escript\rabbitmq-diagnostics" !STAR!

if ERRORLEVEL 1 (
exit /B %ERRORLEVEL%
)

EXIT /B 0

endlocal
114 changes: 57 additions & 57 deletions deps/rabbit/scripts/rabbitmq-echopid.bat
@@ -1,57 +1,57 @@
@echo off

REM Usage: rabbitmq-echopid.bat <rabbitmq_nodename>
REM
REM <rabbitmq_nodename> (s)name of the erlang node to connect to (required)

setlocal

set TDP0=%~dp0

REM Get default settings with user overrides for (RABBITMQ_)<var_name>
REM Non-empty defaults should be set in rabbitmq-env
call "%TDP0%\rabbitmq-env.bat" %~n0

if "%1"=="" goto argfail

:: set timeout vars ::
set TIMEOUT=10
set TIMER=1

:: check that wmic exists ::
set WMIC_PATH=%SYSTEMROOT%\System32\Wbem\wmic.exe
if not exist "%WMIC_PATH%" (
goto fail
)

:getpid
for /f "usebackq tokens=* skip=1" %%P IN (`%%WMIC_PATH%% process where "name='erl.exe' and commandline like '%%%RABBITMQ_NAME_TYPE% %1%%'" get processid 2^>nul`) do (
set PID=%%P
goto echopid
)

:echopid
:: check for pid not found ::
if "%PID%" == "" (
PING 127.0.0.1 -n 2 > nul
set /a TIMER+=1
if %TIMEOUT%==%TIMER% goto fail
goto getpid
)

:: show pid ::
echo %PID%

:: all done ::
:ok
endlocal
EXIT /B 0

:: argument is required ::
:argfail
echo Please provide your RabbitMQ node name as the argument to this script.

:: something went wrong ::
:fail
endlocal
EXIT /B 1
@echo off

REM Usage: rabbitmq-echopid.bat <rabbitmq_nodename>
REM
REM <rabbitmq_nodename> (s)name of the erlang node to connect to (required)

setlocal

set TDP0=%~dp0

REM Get default settings with user overrides for (RABBITMQ_)<var_name>
REM Non-empty defaults should be set in rabbitmq-env
call "%TDP0%\rabbitmq-env.bat" %~n0

if "%1"=="" goto argfail

:: set timeout vars ::
set TIMEOUT=10
set TIMER=1

:: check that wmic exists ::
set WMIC_PATH=%SYSTEMROOT%\System32\Wbem\wmic.exe
if not exist "%WMIC_PATH%" (
goto fail
)

:getpid
for /f "usebackq tokens=* skip=1" %%P IN (`%%WMIC_PATH%% process where "name='erl.exe' and commandline like '%%%RABBITMQ_NAME_TYPE% %1%%'" get processid 2^>nul`) do (
set PID=%%P
goto echopid
)

:echopid
:: check for pid not found ::
if "%PID%" == "" (
PING 127.0.0.1 -n 2 > nul
set /a TIMER+=1
if %TIMEOUT%==%TIMER% goto fail
goto getpid
)

:: show pid ::
echo %PID%

:: all done ::
:ok
endlocal
EXIT /B 0

:: argument is required ::
:argfail
echo Please provide your RabbitMQ node name as the argument to this script.

:: something went wrong ::
:fail
endlocal
EXIT /B 1

0 comments on commit 14d1af2

Please sign in to comment.