[ server ] [ agent ]- 收集Agent的版本信息 初步完成 - 2; 增加OpenFeign; 优化代码
This commit is contained in:
@@ -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小时!"
|
||||
|
||||
Reference in New Issue
Block a user