From owner-freebsd-questions@FreeBSD.ORG Tue May 3 18:33:04 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C05FE1065678 for ; Tue, 3 May 2011 18:33:04 +0000 (UTC) (envelope-from web@3dresearch.com) Received: from smtp.3dresearch.com (dorabella.3dresearch.com [66.167.251.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8EC338FC0C for ; Tue, 3 May 2011 18:33:04 +0000 (UTC) Received: from fracasso.3dresearch.com (pool-96-236-232-63.pitbpa.east.verizon.net [96.236.232.63]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vmail.3dresearch.com (Postfix) with ESMTP id 0324140B86; Tue, 3 May 2011 14:33:02 -0400 (EDT) Received: from fracasso.3dresearch.com (localhost [127.0.0.1]) by fracasso.3dresearch.com (Postfix) with SMTP id 294615C85; Tue, 3 May 2011 14:33:01 -0400 (EDT) Date: Tue, 3 May 2011 14:32:44 -0400 From: Janos Dohanics To: Robert Bonomi Message-Id: <20110503143244.81861e46.web@3dresearch.com> In-Reply-To: <201105031803.p43I3Px8067589@mail.r-bonomi.com> References: <20110503124037.a4469206.web@3dresearch.com> <201105031803.p43I3Px8067589@mail.r-bonomi.com> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: /etc/newsyslog.conf and denyhosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2011 18:33:04 -0000 On Tue, 3 May 2011 13:03:25 -0500 (CDT) Robert Bonomi wrote: > > From owner-freebsd-questions@freebsd.org Tue May 3 12:17:12 2011 > > Date: Tue, 3 May 2011 12:40:37 -0400 > > From: Janos Dohanics > > To: freebsd-questions@freebsd.org > > Subject: /etc/newsyslog.conf and denyhosts > > > > What is the correct way to rotate denyhosts log files? > > > > In /etc/newsyslog.conf I have: > > > > /var/log/denyhosts 644 12 * > > $M1D0 JC /var/run/denyhosts.pid > > > > However, denyhosts does not log in the new file. > > Denyhosts has to be informed that the logfile has changed, so that it > can close and re-open the logfile. It may be possible by sending it > a 'signal', or you may have to kill/restart it. See the > documentation for denyhosts. > > Newsyslog itself does _not_ notify/restart any daemons you have to > do this yourself. Thank you, I'll just set up a cron job to restart it -- Janos Dohanics