Hello Guys,
 
I have a question about logrotate. Basically, what I want is to keep my apache logfiles indefinitely. Here's my setup:-
 
-----------
"/etc/logrotate.conf"
weekly
rotate 4
create
compress
include /etc/logrotate.d
-----------
 
"/etc/logrotate.d/httpd"
/var/log/httpd/*.log
{
    missingok
    size=500M
    compress
    weekly
    nomail
    notifempty
    sharedscripts
    postrotate
    /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
}
-----------
 
I have removed the option "rotate" in my "/etc/logrotate.d/httpd". Is this the correct way of keeping log files indefinitely? any hint ?
 
Thanks,
JP
 
 
 
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to