update to a cleanup scripts of buffer

This commit is contained in:
Dmitry Ozerov
2020-10-27 19:57:41 +01:00
committed by Data Backend account
parent 11ffd66fc1
commit 5f161e3c97
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
heck every hour if buffer is occupied for larger then 80% and remove all files older then 3 hours
10 * * * * root /home/dbe/git/sf_daq_buffer/scripts/delete_old_files_in_buffer.sh 80 5
+2 -2
View File
@@ -3,11 +3,11 @@
hours=5
threshold=80
if [ $# = 1 ]
if [ $# -ge 1 ]
then
threshold=$1
fi
if [ $# = 2 ]
if [ $# -eq 2 ]
then
hours=$2
fi