Logrotate Query
"John Paul" <[email protected]> Sun, 30 Oct 2005 11:13:11 +0800
| Newsgroups | gmane.org.user-groups.linux.philippine.newbies |
|---|---|
| Message-ID | <002a01c5dcff$e7549b20$020a0a0a@DDW2PG1S> |
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) Newbie Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph