From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 16:07:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B00A16A4CE for ; Sun, 14 Mar 2004 16:07:14 -0800 (PST) Received: from destiny.chrononomicon.com (mail.chrononomicon.com [65.193.73.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCED643D2F for ; Sun, 14 Mar 2004 16:07:13 -0800 (PST) (envelope-from bsilver@chrononomicon.com) Received: from [IPv6:::1] (destiny.chrononomicon.com [192.168.1.42]) by destiny.chrononomicon.com (Postfix) with ESMTP id 3F6521FDFF for ; Sun, 14 Mar 2004 19:07:02 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v612) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: FreeBSD Questions Mailing List From: Bart Silverstrim Date: Sun, 14 Mar 2004 19:07:04 -0500 X-Mailer: Apple Mail (2.612) Subject: log rotation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 00:07:14 -0000 Quick questions: I've run across some mumblings in the ClamAV lists about Clamd not logging anymore (or not scanning anymore?) when the maximum logfile size is reached. Is anyone in FreeBSD running this, and if so, are you using Newsyslog to rotate the logs? What are your settings (how would I set it up)? Elaborations: I didn't know what would be a safe way to do this, since I also have an every-four-hour update running for the clamav and I didn't know what would happen if A) the update for the database falls at a moment when the log is rotating B) I didn't find the "proper" way to rotate the log so Clamd doesn't have an open file handle on a log being rotated and/or have clamd try writing to the file while it's being rotated C) how can clamd have the file rotated without being "temporarily disabled" running into problems because that disabled clamd may be called on in that period by amavisd-new to do a virus scan on a mail message... Anyone got a good log rotation scheme in place to handle this automatically without running into problems? Thanks! -Bart