scylla-jmx: Fix RMI bind address when using local only connector

Message-Id: <1486382699-25556-1-git-send-email-calle@scylladb.com>
(cherry picked from commit 2ae7ccf945)
This commit is contained in:
Calle Wilund 2017-02-06 12:04:59 +00:00 committed by Avi Kivity
parent 2581642a5b
commit c947223b96

View File

@ -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