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

Message-Id: <1486382699-25556-1-git-send-email-calle@scylladb.com>
This commit is contained in:
Calle Wilund 2017-02-06 12:04:59 +00:00 committed by Avi Kivity
parent ac8743269c
commit 2ae7ccf945
1 changed files with 2 additions and 0 deletions

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