logrotate not able to truncate catalina.out - actual answer
0
votes
1
answer
1908
views
This is related to https://unix.stackexchange.com/questions/499053/logrotate-not-able-to-truncate-catalina-out which is incorrectly closed as a duplicate, even though the duplicate question describes a subtly different issue with a very different solution.
Question (abbreviated to the relevant parts for brevity):
With the following logrotate configuration, why does the log rotate, but catalina.out does not get truncated? (This is different from the behavior in the question linked as a duplicate, where rotating did not happen at all).
/log/apache-tomcat/catalina.out{
copytruncate
daily
size 256M
rotate 8
missingok
maxage 7
}
logrotate -v verifies that copying the log file, compressing and truncating all are happening.
Asked by Kevin Keane
(664 rep)
Nov 4, 2021, 09:11 PM
Last activity: Jul 7, 2025, 03:06 PM
Last activity: Jul 7, 2025, 03:06 PM