Commit 53f79093 authored by royl88's avatar royl88
Browse files

add jmx switch

parent f6e99b2f
Showing with 8 additions and 2 deletions
+8 -2
#!/bin/sh #!/bin/sh
mkdir -p /data/wecube/log mkdir -p /data/wecube/log
java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=${WECUBE_SERVER_JMX_PORT} -Dcom.sun.management.jmxremote.rmi.port=${WECUBE_SERVER_JMX_PORT} -Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=${WECUBE_CORE_HOST} -Djava.security.egd=file:/dev/urandom \ if [ 'true' == "$WECUBE_SERVER_JMX" ]; then
JMX_ARGS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=${WECUBE_SERVER_JMX_PORT} -Dcom.sun.management.jmxremote.rmi.port=${WECUBE_SERVER_JMX_PORT} -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
else
JMX_ARGS=""
fi
java ${JMX_ARGS} -Djava.rmi.server.hostname=${WECUBE_CORE_HOST} -Djava.security.egd=file:/dev/urandom \
-jar /application/platform-core.jar --server.address=0.0.0.0 --server.port=8080 \ -jar /application/platform-core.jar --server.address=0.0.0.0 --server.port=8080 \
--wecube.core.s3.endpoint=${S3_ENDPOINT} \ --wecube.core.s3.endpoint=${S3_ENDPOINT} \
--wecube.core.s3.access-key=${S3_ACCESS_KEY} \ --wecube.core.s3.access-key=${S3_ACCESS_KEY} \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment