Fix args for booting java process

args must be specified before jar file, updated args

Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
Shlomi Livne 2015-09-17 14:52:01 +03:00 committed by Pekka Enberg
parent 72751b75d8
commit f162d740e0

View File

@ -1,5 +1,5 @@
#!/bin/sh -e #!/bin/sh -e
args="-Djava.net.preferIPv4Stack=true -Dcassandra.jmx.local.port=$JMX_LOCAL_PORT" args="-Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote.port=$JMX_LOCAL_PORT -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmemote.ssl=false"
exec /usr/bin/java -jar /usr/lib/scylla/jmx/urchin-mbean-1.0.jar $args exec /usr/bin/java $args -jar /usr/lib/scylla/jmx/urchin-mbean-1.0.jar