tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter B. West" <pbw...@powerup.com.au>
Subject Re: logrotate question
Date Thu, 22 Mar 2001 12:12:42 GMT
Try `man logrotate', and check for sharedscripts option which should
precede your script.  See below.  I've never tried it, of course.

Peter

unplug wrote:
> 
> Hi all,
> 
>   I edit the logrotate config file for tomcat as follow.
> 
> /var/log/tomcat/*.log {
>    compress
>    daily
>    rotate 7
>    notifempty
>    missingok

     sharedscripts

>    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

-- 
Peter B. West  pbwest@powerup.com.au  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"

Mime
View raw message