Re: Logrotate Query
jopoy solano <[email protected]> Mon, 31 Oct 2005 08:42:41 +0800
| Newsgroups | gmane.org.user-groups.linux.philippine.newbies |
|---|---|
| Message-ID | <[email protected]> |
Try moving /etc/logrotate.d/httpd to another backup directory so that it won't be included in logrotate. hth. 'Jopoy On 10/30/05, John Paul <[email protected]> wrote: > > 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<http://irc.free.net.ph> > ) > Read the Guidelines: http://linux.org.ph/lists > Searchable Archives: http://archives.free.net.ph > > _________________________________________________________ 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