monthly(8) httpd log rotation for wwwstat

SYNOPSIS

monthly

DESCRIPTION

THIS PROGRAM MUST ONLY BE RUN ONCE PER MONTH!
DURING THE FIRST WEEK It assumes a lot, like that you use wwwstat and archive your logfiles once per month. You will need to configure it for your server before it can be used.

Reads the logfile (assumed to contain more than one month's worth of WWW common logfile entries) and moves the prior month's entries into a separate file. The new file is created on TMPDIR (to avoid filling up the disk), compressed using gzip, and then moved to the archive directory. The program also restarts the httpd server.