diff options
| author | Michael Klishin <michael@novemberain.com> | 2016-09-12 21:59:42 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-12 21:59:42 +0400 |
| commit | c86b6a0a1bfaf43f114141730dd8215267bd96e8 (patch) | |
| tree | a8fd9b4cb4c5f8d7781572442d9d7e2917dab0e9 /scripts | |
| parent | 9e412098eb5c913a020a908bd1ef66384724355d (diff) | |
| parent | 37cb0c826e8423e3d7aa7eee3d09272ae49c8b37 (diff) | |
| download | rabbitmq-server-git-c86b6a0a1bfaf43f114141730dd8215267bd96e8.tar.gz | |
Merge pull request #957 from rabbitmq/rabbitmq-server-956
Introduce RABBITMQ_IGNORE_SIGINT to ignore the +B VM flag
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/rabbitmq-env | 2 | ||||
| -rwxr-xr-x | scripts/rabbitmq-server | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env index f055f1db40..8c33e7c0b7 100755 --- a/scripts/rabbitmq-env +++ b/scripts/rabbitmq-env @@ -186,6 +186,8 @@ DEFAULT_NODE_PORT=5672 [ "x" = "x$RABBITMQ_SERVER_CODE_PATH" ] && RABBITMQ_SERVER_CODE_PATH=${SERVER_CODE_PATH} [ "x" = "x$RABBITMQ_MNESIA_DIR" ] && RABBITMQ_MNESIA_DIR=${MNESIA_DIR} [ "x" = "x$RABBITMQ_MNESIA_DIR" ] && RABBITMQ_MNESIA_DIR=${RABBITMQ_MNESIA_BASE}/${RABBITMQ_NODENAME} +[ "x" = "x$RABBITMQ_IGNORE_SIGINT" ] && RABBITMQ_IGNORE_SIGINT="true" +[ "xtrue" = "x$RABBITMQ_IGNORE_SIGINT" ] && RABBITMQ_IGNORE_SIGINT_FLAG="+B i" rmq_normalize_path_var \ RABBITMQ_CONFIG_FILE \ diff --git a/scripts/rabbitmq-server b/scripts/rabbitmq-server index c99022fcf6..7b0599e88f 100755 --- a/scripts/rabbitmq-server +++ b/scripts/rabbitmq-server @@ -224,9 +224,8 @@ else # When RabbitMQ runs in the foreground but the Erlang shell is # disabled, we setup signal handlers to stop RabbitMQ properly. This # is at least useful in the case of Docker. - # The Erlang VM should ignore SIGINT. - RABBITMQ_SERVER_START_ARGS="${RABBITMQ_SERVER_START_ARGS} +B i" + RABBITMQ_SERVER_START_ARGS="${RABBITMQ_SERVER_START_ARGS} ${RABBITMQ_IGNORE_SIGINT_FLAG}" # Signal handlers. They all stop RabbitMQ properly (using # rabbitmqctl stop). Depending on the signal, this script will exit |
