Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2011 14:32:44 -0400
From:      Janos Dohanics <web@3dresearch.com>
To:        Robert Bonomi <bonomi@mail.r-bonomi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /etc/newsyslog.conf and denyhosts
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 3 May 2011 13:03:25 -0500 (CDT)
Robert Bonomi <bonomi@mail.r-bonomi.com> 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 <web@3dresearch.com>
> > 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



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