LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Problem with removing apache logs

[ILUG] Problem with removing apache logs

Jerry Walsh jerry at aardvark.ie
Mon Nov 12 11:25:09 GMT 2001


At 11:17 12/11/01 +0000, you wrote:
>According to Jerry Walsh:
> > No, rotatelogs doesn't HUP apache at all... apache pipes the log data
> > to rotatelogs which in turn just creates a new logfile when the time
> > comes and it sends the log data into that one.  Rotatelogs doesn't touch
> > the apache processes at all...
> >
> > Jerry.
>
>Are you sure about that?
>
>Waider (eris.euroconex.prv) $ > cat /etc/logrotate.d/apache
>/var/log/httpd/access_log /var/log/httpd/agent_log 
>/var/log/httpd/error_log /var/log/httpd/referer_log {
>     missingok
>     sharedscripts
>     postrotate
>     /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
>     endscript
>}

Eh, I said rotatelogs, not logrotate.d.






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell