Subject: Re: Log rotation
To: NetBSD Current Users <current-users@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: current-users
Date: 02/18/2005 21:55:41
On Sat, 19 Feb 2005, Dick Davies wrote:

> > personally, i dont care about missing a few logs, i'd rather not restart
> > processes like httpd.
>
> You can send whatever signal you like to the process - a HUP should just
> do the equivalent of 'apachectl graceful'.

The HUP is for restart now. SIGUSR1 is for graceful.

Graceful is good because you won't lose logs and you won't lose HTTP
service.

But ... since its children still handle their current requests, you can't
compress the file. So use the newsyslog.conf "p" flag to not compress the
.0 log file. (I just learned about that "p" flag ... I may start using
newsyslog for my Apache logs now!)

 Jeremy C. Reed

 	  	 	 technical support & remote administration
	  	 	 http://www.pugetsoundtechnology.com/