Hi all,
I edit the logrotate config file for tomcat as follow.
/var/log/tomcat/*.log {
compress
daily
rotate 7
notifempty
missingok
postrotate
/etc/init.d/tomcat restart
endscript
}
However, I found that it will stop and than start the tomcat
3 times. It is the numer of the log file in the tomcat (tomcat.log,
jasper.log & servlet.log). How can I make it to restart only once
for rotating 3 log files??
Rgds,
unplug
- Re: logrotate question unplug
- Re: logrotate question Milt Epstein
- Re: logrotate question Arnaud Vandyck
- Re: logrotate question Peter B. West
