I have a query which I realise is a borderline mod_ssl query.

I want to rotate logs every month just after midnight at the beginning of
each month, using cron. I have two servers I wish to do this on. One has 26
files open for logs and the other has 12 files log files open. This includes
the default ssl_request_log and ssl_engine_log.

I am not entirely convinced that logrotate will rotate these logs before
anything for the next day is written to them, especially if for example the
server is in the process of an SSL handshake at 24:00:00.

I am tempted to write a script to run under cron like as follows:

#!/bin/bash
/etc/rc.d/init.d/httpd stop
mv /var/log/httpd/* /var/log/httpd/archive
/etc/rc.d/init.d/httpd start

(And somehow taking into account all issues related to pass phrases on the
private key). This does mean that the sites are taken down for a short while
every month.

Basically, does anyone have this working using logrotate? I don't want to go
down the route of bunging all virtual hosts into one file, thanks all the
same!

- 
John Airey
Internet Systems Support Officer, ITCSD, Royal National Institute for the
Blind,
Bakewell Road, Peterborough PE2 6XU,
Tel.: +44 (0) 1733 375299 Fax: +44 (0) 1733 370848 [EMAIL PROTECTED]
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to