start.sh 236 B

123456
  1. #!/bin/bash
  2. echo "start in start.sh"
  3. export TRACES_ENDPOINT=http://10.0.12.192:18080/docp/api/v2/data/receive
  4. pid=$(nohup $1 --listen="0.0.0.0:8123">>"/dev/null" 2>&1 & echo $!)
  5. AGENT_PID_FILE="$1.pid"
  6. echo ${pid} > "${AGENT_PID_FILE}"