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