/etc/newsyslog.conf and denyhosts

Janos Dohanics web at 3dresearch.com
Tue May 3 18:33:04 UTC 2011


On Tue, 3 May 2011 13:03:25 -0500 (CDT)
Robert Bonomi <bonomi at mail.r-bonomi.com> wrote:

> > From owner-freebsd-questions at freebsd.org  Tue May  3 12:17:12 2011
> > Date: Tue, 3 May 2011 12:40:37 -0400
> > From: Janos Dohanics <web at 3dresearch.com>
> > To: freebsd-questions at 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


More information about the freebsd-questions mailing list