summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangzhihan <[email protected]>2020-05-08 18:22:59 +0800
committerzhangzhihan <[email protected]>2020-05-08 18:22:59 +0800
commit5d1154a5b76efe77a1b7ed29ad92657f5f571e68 (patch)
treea797f50723b2e219329dd0751028db46b3ea3fd1
parente801af6ae31c8784fe2bb4aaf74e0ae4bf8693f6 (diff)
parent7967a5f318260995d4fd32e110868a53363502f8 (diff)
Merge branch 'master' of git.mesalab.cn:zhangzhihan/device-management-scripts
-rw-r--r--roles/tsg-cli-mcn0/files/tsg-monitor.sh4
-rw-r--r--roles/tsg-cli-mcn1/files/tsg-monitor.sh4
-rw-r--r--roles/tsg-cli-mcn2/files/tsg-monitor.sh4
-rw-r--r--roles/tsg-cli-mcn3/files/tsg-monitor.sh4
-rw-r--r--roles/tsg-cli-mxn/files/tsg-monitor.sh4
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