[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache



An, 2003-06-10 12:56, Teun Vink rašė:
> On Tue, 2003-06-10 at 11:07, Martynas Domarkas wrote:
> [...]
> > 
> > Thanks, but I realy do not like instalation of another packages. There
> > must be a way to do this with apache configuration.
> 
> You could add a line to your /etc/logrotate.d/apache configuration, 
> so it would look something like this:
> 
> [...]
>    postrotate
>       /etc/init.d/apache reload > /dev/null
>       mv -f $1.0 $1.`date +"%Y-%m-%d"`
>    endscript
> [...]
> 
> This would rename access.log.0 to access.log.2003-06-10
> 
> 
> Regards,
> 
> 
> Teun Vink
> 

Thanks a lot. This is nice solution, but I still like apache do the job,
and let logrotate simpy rotate /var/log/apache/*.log. I feel like I have
seen somewhere some piece of shell command in httpd.conf.


-- 
Pagarbiai
IT sistemų administratorius
Martynas Domarkas
tel.: +370 698 44331




Reply to: