Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2000 22:57:24 +0200
From:      Roelof Osinga <roelof@nisser.com>
To:        custom <jcwells@nwlink.com>
Cc:        Drew Sanford <drew@planetwe.com>, questions@FreeBSD.ORG
Subject:   Re: Zero'ing out files
Message-ID:  <395D09B4.64AE90B7@nisser.com>
References:  <Pine.SOL.3.96.1000629144715.21744B-100000@utah>

next in thread | previous in thread | raw e-mail | index | archive | help
custom wrote:
> 
> On Thu, 29 Jun 2000, Drew Sanford wrote:
> 
> > Is there a way to zero out a file, and still leave it open, say for an
> > apache access log? If there is a simple way to rotate the access logs
> 
> Apache docs specifically warn against zeroing out files while the process
> is running. (at least they did the last time I read up on this.)

It's ok to do, as long as you signal the daemons that the
logfile has been tampered with. By giving it a SIGHUP.

Roelof

-- 
-----------------------------------------------------------------------
Eboa (ingenieursburo Office Automation)      web. http://eboa.com/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?395D09B4.64AE90B7>