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:
parent
ac8743269c
commit
2ae7ccf945
|
@ -98,6 +98,7 @@ do
|
||||||
;;
|
;;
|
||||||
-Dcom.sun.management.jmxremote.host=*)
|
-Dcom.sun.management.jmxremote.host=*)
|
||||||
JMX_ADDR=$1
|
JMX_ADDR=$1
|
||||||
|
HOSTNAME=${1:36}
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-Dcom.sun.management.jmxremote.authenticate=*)
|
-Dcom.sun.management.jmxremote.authenticate=*)
|
||||||
|
@ -127,6 +128,7 @@ if [ $REMOTE -eq 0 ]; then
|
||||||
if [ -z $JMX_ADDR ]; then
|
if [ -z $JMX_ADDR ]; then
|
||||||
JMX_ADDR=-Dcom.sun.management.jmxremote.host=localhost
|
JMX_ADDR=-Dcom.sun.management.jmxremote.host=localhost
|
||||||
fi
|
fi
|
||||||
|
HOSTNAME=localhost
|
||||||
else
|
else
|
||||||
if [ -z $JMX_LOCAL ]; then
|
if [ -z $JMX_LOCAL ]; then
|
||||||
JMX_LOCAL=-Dcom.sun.management.jmxremote.local.only=false
|
JMX_LOCAL=-Dcom.sun.management.jmxremote.local.only=false
|
||||||
|
|
Loading…
Reference in New Issue
Block a user