taojintianxia commented on code in PR #23572:
URL: https://github.com/apache/shardingsphere/pull/23572#discussion_r1070777365
##########
distribution/proxy/src/main/resources/bin/start.sh:
##########
@@ -134,6 +135,20 @@ if [ "$1" == "-v" ] || [ "$1" == "--version" ] ; then
print_version
fi
+
+function enable_agent() {
+ AGENT_PARAM="";
+ AGENT_FILE="${DEPLOY_DIR}/agent/shardingsphere-agent.jar"
+ if [ -f "$AGENT_FILE" ]; then
+ AGENT_PARAM=" -javaagent:${AGENT_FILE} "
+ fi
+}
+
+if [ "$1" == "-g" ] || [ "$1" == "--agent" ] ; then
Review Comment:
>
wow, thanks for your suggestion. I was doing that then.
this time it support random positon in parameters.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]