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

Re: Apache/1.3.3 (Red Hat/Linux)




On Wed, 27 Jan 1999, Shachar Tal wrote:

> > Its not in the root crontab and i dont have others so i checked little deeper
> > and foound under /etc/logrotate.d file name apache

it's in /etc/cron.weekly probably, which is in turn run by run-parts from
he main crontab on redhat (idea copied from Debian)

logs for httpd usually rotate once a week by default, it makes sence for
most people, expecially on havily used sites.

> > 
> > [root@www logrotate.d]# cat apache
> > /var/log/httpd/access_log {
> >     postrotate
> >         /usr/bin/killall -HUP httpd
> >     endscript
> > }

just remove this specific file and you are set: /etc/logrotate.d/apache

> > I rejoined the access file and ran "killall -HUP httpd" and it didnt split
> > it.
> > Strange :-(
> 
> rotate your log file at midnight or whenever it's supposed to do it.

exactly. it's not httpd that does the rotation. the file above instructs
logrotate to send a HUG signal to the HTTPD so it reopens the logs from
scratch after the current log file is moved and renamed.

-- 
Ira Abramov ;  whois:IA58  ;  www.scso.com ;  all around Linux enthusiast 
`When you say "I wrote a program that crashed Windows", people just stare
at you blankly and say  "Hey, I got those with the system,  *for free*".'
                                                         (Linus Torvalds)