[ server ] [ agent ]- 收集Agent的版本信息 初步完成 - 2; 增加OpenFeign; 优化代码

This commit is contained in:
zeaslity
2023-02-08 12:13:16 +08:00
parent 93638bf7c6
commit 612e053cd9
7 changed files with 46 additions and 5 deletions

View File

@@ -7,10 +7,10 @@ current_time=$(date +%s)
elapsed_time=$((current_time - start_time))
if [[ $(ps -ef | grep -v "color" |grep -c "/octopus-agent/shell/function/load50cpu_2_hour") -gt 0 ]]; then
log "已经存在CPU占用进程 !杀死该进程"
kill -9 $(ps -ef | grep -v "color" |grep "/octopus-agent/shell/function/load50cpu_2_hour" | awk '{print$2}')
fi
#if [[ $(ps -ef | grep -v "color" |grep -c "/octopus-agent/shell/function/load50cpu_2_hour") -gt 0 ]]; then
# log "已经存在CPU占用进程 !杀死该进程"
# kill -9 $(ps -ef | grep -v "color" |grep "/octopus-agent/shell/function/load50cpu_2_hour" | awk '{print$2}')
#fi
log "开始执行CPU占用任务占用时间为 2小时"