[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Limiting the size of log files



On Mon, 24 Jan 2000, Sathya Rangaswamy wrote:

> ON RH logrotate will help . Do a man on logrotate. In fact on RH it is already
> configured for files in
> /var/log and is scheduled as a cron job. The logrotate.conf file is in /etc

Most Linux installs have log rotation set to happen in the middle of the
night. If your machine is not on at that time, it will not rotate. 

In RHL , edit the file /etc/crontab to cause
/etc/cron.[daily/weekly/monthly] to be run at times when the machine is
actually on.

For example, change 

02 4 * * * root run-parts /etc/cron.daily

to

02 10 * * * root run-parts /etc/cron.daily 

so that it executes at 2 minutes past 10 am instead of 2 minutes past 4
am.

Atul


--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.