mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
16 lines
370 B
Bash
16 lines
370 B
Bash
#!/bin/bash
|
|
# Additional line arg for current prometheus solution
|
|
case "`uname`" in
|
|
Linux)
|
|
bin_abs_path=$(readlink -f $(dirname $0))
|
|
;;
|
|
*)
|
|
bin_abs_path=`cd $(dirname $0); pwd`
|
|
;;
|
|
esac
|
|
base=${bin_abs_path}/..
|
|
if [ $(ls $base/lib/aspectjweaver*.jar | wc -l) -eq 1 ]; then
|
|
WEAVER=$(ls $base/lib/aspectjweaver*.jar)
|
|
METRICS_OPTS=" -javaagent:"${WEAVER}" "
|
|
fi
|