> > My log config sections are like this:
> >
> > /var/log/apache2/access_log {
> > daily
> > rotate 99
> > postrotate
> > /etc/init.d/apache2 restart
> > endscript
> > }
> >
> > for access_log, ssl_access_log, ssl_request_log, error_log, and
> > ssl_error_log with apache2 restarting for each. I'm thinking that is
> > pretty bad. Can anyone give me any pointers on this?
>
> You could do something like this:
>
> /var/log/apache2/access_log /var/log/apache2/ssl_access_log
> /var/log/apache2/ssl_request_log,
> error_log /var/log/apache2/ssl_error_log {
> daily
> rotate 99
> sharedscripts
> postrotate
> /etc/init.d/apache2 restart
> endscript
> }
>
> The sharedscripts option means that the postrotate script will only be
> executed once for all files. So apache will only be restarted once.
Got it, thank you!
- Grant
> Guilherme Cirne
--
[email protected] mailing list