File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -54,23 +54,6 @@ start_time=$(date '+%s')
5454subj=" $user → backup failed"
5555email=$( grep CONTACT $VESTA /data/users/admin/user.conf | cut -f 2 -d \' )
5656
57- # Checking load average
58- la=$( cat /proc/loadavg | cut -f 1 -d ' ' | cut -f 1 -d ' .' )
59- # i=0
60- while [ " $la " -ge " $BACKUP_LA_LIMIT " ]; do
61- echo -e " $( date " +%F %T" ) Load Average $la "
62- sleep 60
63- wait_for_backup_if_it_is_not_time_for_backup
64- # if [ "$i" -ge "15" ]; then
65- # la_error="LoadAverage $la is above threshold"
66- # echo "$la_error" |$SENDMAIL -s "$subj" $email $notify
67- # sed -i "/ $user /d" $VESTA/data/queue/backup.pipe
68- # check_result $E_LA "$la_error"
69- # fi
70- la=$( cat /proc/loadavg | cut -f 1 -d ' ' | cut -f 1 -d ' .' )
71- # (( ++i))
72- done
73-
7457if [ -z " $BACKUP_TEMP " ]; then
7558 BACKUP_TEMP=$BACKUP
7659fi
You can’t perform that action at this time.
0 commit comments