On Fri, Jul 04, 2003 at 05:19:00AM -0700, koushik lahiri wrote:
I am use the squid proxi server , but i m faceing one prob that squid generated log file in /var/log/squid (access.log,cache.log,store.log) this all r use the hard disk , so plz help me how i stop generated those log file .
Its generally not a good idea to stop generation of log files by server processes. What you should do instead is use the utility called "logrotate" that automatically maintains logfile size. Use "cron" to setup a daily or weekly job that will invoke logrotate.
On a standard RedHat installation, logrotate would already be setup as a cron job. All you need to do is create a suitable conf file in /etc/logrotate.d/ for the squid log files.
"man logrotate" for more information.
Sameer.