tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From unplug <unp...@poboxes.com>
Subject logrotate question
Date Thu, 22 Mar 2001 08:53:45 GMT
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

Mime
View raw message