From 2ae7ccf94544f6506d57793ac8cc2d3bf3e85b0b Mon Sep 17 00:00:00 2001 From: Calle Wilund Date: Mon, 6 Feb 2017 12:04:59 +0000 Subject: [PATCH] scylla-jmx: Fix RMI bind address when using local only connector Message-Id: <1486382699-25556-1-git-send-email-calle@scylladb.com> --- scripts/scylla-jmx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/scylla-jmx b/scripts/scylla-jmx index 0247896..2e8a148 100755 --- a/scripts/scylla-jmx +++ b/scripts/scylla-jmx @@ -98,6 +98,7 @@ do ;; -Dcom.sun.management.jmxremote.host=*) JMX_ADDR=$1 + HOSTNAME=${1:36} shift ;; -Dcom.sun.management.jmxremote.authenticate=*) @@ -127,6 +128,7 @@ if [ $REMOTE -eq 0 ]; then if [ -z $JMX_ADDR ]; then JMX_ADDR=-Dcom.sun.management.jmxremote.host=localhost fi + HOSTNAME=localhost else if [ -z $JMX_LOCAL ]; then JMX_LOCAL=-Dcom.sun.management.jmxremote.local.only=false