Re: [PATCH] git-daemon: fix for rotating logs
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Apr 28, 2008, 18:21 UTC
- Message-ID
- <20080428182114.GF26880@genesis.frugalware.org>
- In-Reply-To
- <alpine.DEB.1.00.0804281908290.19187@eeepc-johanness>
On Mon, Apr 28, 2008 at 07:08:50PM +0100, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 9 quoted lines
> > > With rotating logs, there is a problem when the syslog is opened only > > > once (in the beginning). So open the log everytime we write > > > something, and close it directly after writing. > > > > Gaah, this is ugly. > > > > Is this something all the daemons need to deal with? > > I have no idea, but it seems to fix a real issue.
logrotate supports sending a signal (typically SIGHUP) to the process after it rotated the log. Couldn't we just re-open the log on SIGHUP?