Hi all!

When I dealt with the jobs database applet, I also found out 
that /var/log/apache occupies much more space than it should. Turns out the 
logs for the virtual hosts still were not rotated. 

After reading "man logrotate" I found out the following:

<<<
      -f, --force
              Tells logrotate to force the rotation, even if it doesn't  think
              this  is  necessary.   Sometimes this is useful after adding new
              entries to a logrotate config file, or if  old  log  files  have
              been removed by hand, as the new files will be created, and log-
              ging will continue correctly.
>>>

After running "logrotate -f" once, populating the new logs and running it 
again, we now have compressed logs. As a result, the Apache logs directory 
now occupies 100 MB instead of 500 MB. A year from now, there'll be another 
dramatic improvement as the huge compressed log up to now will be removed.

Regards,

        Shlomi Fish

---------------------------------------------------------------------
Shlomi Fish      [EMAIL PROTECTED]
Homepage:        http://www.shlomifish.org/

95% of the programmers consider 95% of the code they did not write, in the
bottom 5%.

Reply via email to