Merge "Fix logrotate_crond issues"
This commit is contained in:
commit
220170dfb2
@ -22,8 +22,8 @@
|
||||
\( -mtime +<%= @purge_after_days %> -or \
|
||||
-atime +<%= @purge_after_days %> -or \
|
||||
-ctime +<%= @purge_after_days %> \) -exec rm -f {} \;;
|
||||
/sbin/lsof -nPs +L1 +D /var/log 2>&1|\
|
||||
awk '/\S+\s+[0-9]+\s.*\/var\/log\/.*\(deleted\)/ {print $2}' |\
|
||||
/bin/xargs -n1 -r -t kill -HUP
|
||||
/sbin/lsof -nPs +L1 +D /var/log/containers 2>&1|\
|
||||
awk '/\S+\s+[0-9]+\s.*\/var\/log\/containers\/.*\(deleted\)/ {print $2}' |\
|
||||
sort -u | /bin/xargs -n1 -r -t kill -HUP
|
||||
endscript
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user