Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2004 22:14:22 -0500
From:      "Andras Kende" <andras@kende.com>
To:        "'Graham North'" <graham.north@telus.net>, <freebsd-questions@freebsd.org>, "'Matthew Seaman'" <matthew@cryptosphere.com>
Cc:        'Matthew Seaman' <matthew@cryptosphere.com>
Subject:   RE: Apache log rotation problems
Message-ID:  <20040709031223.E931D43D48@mx1.FreeBSD.org>
In-Reply-To: <002401c4655c$ecd47640$627ba8c0@phoenix>

next in thread | previous in thread | raw e-mail | index | archive | help


-----Original Message-----
From: owner-freebsd-questions@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Graham North
Sent: Thursday, July 08, 2004 9:32 PM
To: freebsd-questions@freebsd.org; Matthew Seaman
Cc: robert@irrelevant.com; tim@typhoon.techvalley.ca; Matthew Seaman
Subject: Apache log rotation problems

Hello all:

There has to be a simple fix to this problem - I am using newsyslog and cron
to rotate my Apache logfiles.    They get rotated and Apache keeps working
however after a log rotation takes place Apache will not longer log my
accesses.   It does continue to serve pages but I need to do an apachectl
restart in order for it to continue logging properly.

newsyslog.conf and crontab files are attached for reference.

Any help and suggestions greatly appreciated.
Regards,  Graham/


Hello,

Try something like this:

newsyslog.conf:
/var/log/httpd-access.log  644  2   *   @T00   B   /var/run/httpd.pid 30


More info:
http://www.freebsddiary.org/rotatelogs.php


Best regards,

Andras Kende
http://www.kende.com





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040709031223.E931D43D48>