[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Big Logs



Here is what I put in /etc/logrotate.d/slapd:

/var/log/slapd.log {
        postrotate
                /sbin/service ldap restart
        endscript
        }

I think this is all you need for log rotation weekly.  Check your defaults 
in /etc/logrotate.conf and change accordingly.


On Tue, 8 Oct 2002, GG Noris wrote:

> I thik is a stupid question but i do not find a clear response:
> 
> I use RH 7.3, with openldap 2.0.23
> 
> I need to rotate the /var/log/ldap.log, but i do not find the script to
> put in /etc/logrotate.d/
> 
> Or there is another method ???
> 
> Please.....
> 
> GG
> 

-- 
Andrew Bacchi
Staff Systems Programmer
Rensselaer Polytechnic Institute
phone: 518 276-6415  fax: 518 276-2809

http://www.rpi.edu/~bacchi/