Simplify logrotate job
In order to prevent the removal of unwanted files, the "find" commands in the post-rotate have been removed, in favor of a tmpwatch call (see Depends-On patch). Depends-On: https://review.openstack.org/641608 Change-Id: Ideaecc7559664684a8665292f77a385a87224582
This commit is contained in:
parent
7acd72e0f2
commit
bec51059cf
@ -19,11 +19,4 @@
|
||||
<%- if @compress %>
|
||||
compress
|
||||
<%- end %>
|
||||
sharedscripts
|
||||
postrotate
|
||||
/usr/bin/find /var/log/containers -type f \
|
||||
\( -mtime +<%= @purge_after_days %> -or \
|
||||
-atime +<%= @purge_after_days %> -or \
|
||||
-ctime +<%= @purge_after_days %> \) -exec rm -f {} \;;
|
||||
endscript
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user