diff options
| author | lijia <[email protected]> | 2020-04-17 14:23:04 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2020-04-17 14:23:04 +0800 |
| commit | 742162ef3f450bcebac6596d8489297ad4876b4f (patch) | |
| tree | 0b2a0d7d3837fbbcab767a25948bbb7fad604471 /roles | |
| parent | 174099187767f273e4feb59ee16e558fb5a230f1 (diff) | |
修复/tmp/_MEIxxx大量临时文件占用空间BUG.adc_hardware_chassis_id
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/tsg-cli-mcn0/files/tsg-monitor.sh | 4 | ||||
| -rw-r--r-- | roles/tsg-cli-mcn1/files/tsg-monitor.sh | 4 | ||||
| -rw-r--r-- | roles/tsg-cli-mcn2/files/tsg-monitor.sh | 4 | ||||
| -rw-r--r-- | roles/tsg-cli-mcn3/files/tsg-monitor.sh | 4 | ||||
| -rw-r--r-- | roles/tsg-cli-mxn/files/tsg-monitor.sh | 4 |
5 files changed, 15 insertions, 5 deletions
diff --git a/roles/tsg-cli-mcn0/files/tsg-monitor.sh b/roles/tsg-cli-mcn0/files/tsg-monitor.sh index c474424..8bc13c5 100644 --- a/roles/tsg-cli-mcn0/files/tsg-monitor.sh +++ b/roles/tsg-cli-mcn0/files/tsg-monitor.sh @@ -17,6 +17,8 @@ killall_uncompleted_cmd(){ killall -9 -q tsg_monit_protocol_v4 #killall -9 -q tsg_monit_stream_v3 killall -9 -q tsg_monit_stream_v4 + + rm -rf /tmp/_MEI* } start_background_cmd(){ @@ -80,7 +82,7 @@ while [ 1 ]; do #echo tsg-monitor start at `date +"%Y/%m/%d, %H:%M:%S.%N"` >> /tmp/tsg-monitor.log start_background_cmd - sleep 10 + sleep 13 killall_uncompleted_cmd sleep_for_time_ms $start_time 15000 diff --git a/roles/tsg-cli-mcn1/files/tsg-monitor.sh b/roles/tsg-cli-mcn1/files/tsg-monitor.sh index 21fa970..72c2c83 100644 --- a/roles/tsg-cli-mcn1/files/tsg-monitor.sh +++ b/roles/tsg-cli-mcn1/files/tsg-monitor.sh @@ -11,6 +11,8 @@ killall_uncompleted_cmd(){ killall -9 -q tsg_update_tags killall -9 -q tsg_monit_interface killall -9 -q tsg_monit_intercept + + rm -rf /tmp/_MEI* } start_background_cmd(){ @@ -68,7 +70,7 @@ while [ 1 ]; do #echo tsg-monitor start at `date +"%Y/%m/%d, %H:%M:%S.%N"` >> /tmp/tsg-monitor.log start_background_cmd - sleep 10 + sleep 13 killall_uncompleted_cmd sleep_for_time_ms $start_time 15000 diff --git a/roles/tsg-cli-mcn2/files/tsg-monitor.sh b/roles/tsg-cli-mcn2/files/tsg-monitor.sh index e702f0d..618f15a 100644 --- a/roles/tsg-cli-mcn2/files/tsg-monitor.sh +++ b/roles/tsg-cli-mcn2/files/tsg-monitor.sh @@ -11,6 +11,8 @@ killall_uncompleted_cmd(){ killall -9 -q tsg_update_tags killall -9 -q tsg_monit_interface killall -9 -q tsg_monit_intercept + + rm -rf /tmp/_MEI* } start_background_cmd(){ @@ -68,7 +70,7 @@ while [ 1 ]; do #echo tsg-monitor start at `date +"%Y/%m/%d, %H:%M:%S.%N"` >> /tmp/tsg-monitor.log start_background_cmd - sleep 10 + sleep 13 killall_uncompleted_cmd sleep_for_time_ms $start_time 15000 diff --git a/roles/tsg-cli-mcn3/files/tsg-monitor.sh b/roles/tsg-cli-mcn3/files/tsg-monitor.sh index 175be7b..e1a1917 100644 --- a/roles/tsg-cli-mcn3/files/tsg-monitor.sh +++ b/roles/tsg-cli-mcn3/files/tsg-monitor.sh @@ -11,6 +11,8 @@ killall_uncompleted_cmd(){ killall -9 -q tsg_update_tags killall -9 -q tsg_monit_interface killall -9 -q tsg_monit_intercept + + rm -rf /tmp/_MEI* } start_background_cmd(){ @@ -68,7 +70,7 @@ while [ 1 ]; do #echo tsg-monitor start at `date +"%Y/%m/%d, %H:%M:%S.%N"` >> /tmp/tsg-monitor.log start_background_cmd - sleep 10 + sleep 13 killall_uncompleted_cmd sleep_for_time_ms $start_time 15000 diff --git a/roles/tsg-cli-mxn/files/tsg-monitor.sh b/roles/tsg-cli-mxn/files/tsg-monitor.sh index 3943447..2e8e2c4 100644 --- a/roles/tsg-cli-mxn/files/tsg-monitor.sh +++ b/roles/tsg-cli-mxn/files/tsg-monitor.sh @@ -9,6 +9,8 @@ killall_uncompleted_cmd(){ killall -9 -q tsg_cluster_register #killall -9 -q tsg_diagnose_background killall -9 -q tsg_update_tags + + rm -rf /tmp/_MEI* } start_background_cmd(){ @@ -68,7 +70,7 @@ while [ 1 ]; do #echo tsg-monitor start at `date +"%Y/%m/%d, %H:%M:%S.%N"` >> /tmp/tsg-monitor.log start_background_cmd - sleep 10 + sleep 13 killall_uncompleted_cmd sleep_for_time_ms $start_time 15000 |
