Date: Sun, 28 Oct 2001 00:22:40 +0200 (CEST) From: Cyrille Lefevre <clefevre@citeweb.net> To: void <float@firedrake.org> Cc: Kris Kennaway <kris@obsecurity.org>, hackers@FreeBSD.ORG Subject: Re: syslogd and kqueue Message-ID: <200110272222.f9RMMeZ76727@gits.dyndns.org> In-Reply-To: <20011027043342.A18231@parhelion.firedrake.org>
next in thread | previous in thread | raw e-mail | index | archive | help
void wrote: > On Fri, Oct 26, 2001 at 08:04:36PM -0700, Kris Kennaway wrote: > > On Fri, Oct 26, 2001 at 11:39:57PM +0100, void wrote: > > > If syslogd used the kqueue interface, I believe it could open a new log > > > file as soon as it was created, rather than waiting to receive a signal. > > > Would this be worth doing, or would it be too big a divergence from the > > > traditional behavior? > > > > I assume you mean "as soon as the configuration file is modified"? > > That would be a big violation of POLA. > > No ... > > The traditional log-rotation dance goes something like: > > mv log log.0 > touch log never do a mv/touch on a log file to avoid full filled file systems, use cp instead... cp log log.0 (there is a delta here which can be handled w/ tail -0 -f) cp /dev/null log this has the advantage to work w/ every daemons, even the ones wich don't handle SIGHUP as well as simple redirections (daemon > log). > kill -1 `cat /var/run/syslogd.pid` > gzip log.0 Cyrille. -- Cyrille Lefevre mailto:clefevre@citeweb.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110272222.f9RMMeZ76727>