Subject: Re: Log rotation
To: None <current-users@NetBSD.org>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 02/18/2005 17:04:42
In message <200502182244.j1IMitx11262@toad.rmkhome.com>, Rick Kelly writes:
>Jeremy C. Reed said:
>
>>newsyslog does the signal before it compresses the newly rotated file (and
>>after it creates new log file).
>
>Back when www.rmkhome.com was running on NetBSD 1.4, I tried to use newsyslog
>to rotate the apache logs files. I found that it would rotate the files once,
>create the new empty log files, but apache would be logging to the old file
>descriptors, and nothing would get logged until I restarted apache. Has this
>since been fixed? I'm now running NetBSD 2.0.1 on sparc64.

That's what the PID file feature is for; you can tell newsyslog to read a
PID file and send a sighup to it.

-s