mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-07 08:14:12 +02:00
update to a cleanup scripts of buffer
This commit is contained in:
committed by
Data Backend account
parent
11ffd66fc1
commit
5f161e3c97
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user