From owner-freebsd-questions@FreeBSD.ORG Mon Mar 22 18:50:10 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B00E16A4D0 for ; Mon, 22 Mar 2004 18:50:10 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2B2C43D39 for ; Mon, 22 Mar 2004 18:50:09 -0800 (PST) (envelope-from ws+freebsd-questions@au.dyndns.ws) Received: from lillith-iv.ovirt.dyndns.ws (ppp34-232.lns1.adl1.internode.on.net [150.101.34.232]) i2N2nxwn061755; Tue, 23 Mar 2004 13:20:00 +1030 (CST) X-Envelope-From: ws+freebsd-questions@au.dyndns.ws X-Envelope-To: freebsd-questions@freebsd.org Received: from [192.168.100.132] (ppp34-232.lns1.adl1.internode.on.net [150.101.34.232])i2N2nw6i045806; Tue, 23 Mar 2004 13:19:59 +1030 (CST) (envelope-from ws+freebsd-questions@au.dyndns.ws) From: Wayne Sierke To: Garance A Drosihn In-Reply-To: References: <20040322170038.M92688@enabled.com> Content-Type: text/plain Message-Id: <1080010198.670.13.camel@ovirt.dyndns.ws> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 23 Mar 2004 13:19:58 +1030 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.39 X-Scanned-By: SpamAssassin 2.63 (2004-01-11) X-Scanned-By: F-Prot X-Scanned-By: ClamAV X-Spam-Score: 0 () cc: Noah cc: freebsd-questions@freebsd.org Subject: RE: newsyslog and apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 02:50:10 -0000 On Tue, 2004-03-23 at 13:07, Garance A Drosihn wrote: > Hi. > > I do not run apache at all, but I am the guy who has done the > most-recent work on the newsyslog command. > > If I were to guess, I think your problem might be that you end > up sending multiple USR1 signals to apache. I haven't looked > at the code recently, but I think the freebsd newsyslog still > does not optimize the number of signal's that it sends to a > single process. > > What I would suggest you try is some kind of staggered setup. > (it's an easy thing to try...). Something like: > > .../www.domain1.com/access_log 640 30 * @T00 ZN > .../www.domain1.com/error_log 640 30 * @T00 Z /var/run/httpd.pid 30 > .../www.domain2.org/access_log 640 30 * @T02 ZN > .../www.domain2.org/error_log 640 30 * @T02 Z /var/run/httpd.pid 30 > .../www.domain3.com/access_log 640 30 * @T04 ZN > .../www.domain3.com/error_log 640 30 * @T04 Z /var/run/httpd.pid 30 > > (the ...'s are just an attempt to avoid line-wrapping in this > message. you still want the full pathname in the control file) > > The idea is to rotate the log-and-error files for any one domain > at the same time, and only specify the pid once for that group. > And then wait two minutes between the files for each domain name. > > See if that helps you at all. Is there any benefit to using wildcards in newsyslog.conf? eg. I embed the domain name for each logfile into the filename itself, so I've just updated my newsyslog.conf with lines like: /var/log/httpd-*-access.log 644 12 * $M1D0 GJB /var/run/httpd.pid 30 /var/log/httpd-*-error.log 644 12 * $M1D0 GJB /var/run/httpd.pid 30 Will this turn over the logfiles and then do the signal, or will the signal be issued for each file from the expansion? Wayne