On 1/24/08, Douglas A. Tutty <[EMAIL PROTECTED]> wrote:
>
> Use your language-of-choice (e.g. python would be fine, Ada would be
> overkill) and do it.  Probably quite simple.

My language-of-choice would be a Bash script, or Perl at a push. It's
log file rotation, it should be kept simple.

One of the reasons I started running Debian was so I would have to do
less custom development of scripts and cron jobs, and more "set the
following options up after doing a new install".

For what it's worth, Apache logfile rotation is very easy with the
cronolog package installed - just change the 2 log file lines in the
Apache config:

ErrorLog "|/usr/bin/cronolog    /var/log/apache/error.%Y%m%d.log"

That makes cronolog a child process of Apache (one per logfile) and it
looks after writing the file, and starting again with a new one after
midnight (no need to HUP the server to make it let go of the file).
Thet puts it outside of the control of logrotate, though, which may
not be what everyone wants.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to