From owner-freebsd-questions@FreeBSD.ORG Thu Apr 22 19:51:36 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 5720216A4CE for ; Thu, 22 Apr 2004 19:51:36 -0700 (PDT) Received: from typhoon.enabled.com (typhoon.enabled.com [216.218.220.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1617A43D41 for ; Thu, 22 Apr 2004 19:51:36 -0700 (PDT) (envelope-from admin2@enabled.com) Received: from enabled.com (localhost.enabled.com [127.0.0.1]) by typhoon.enabled.com (8.12.11/8.12.11) with ESMTP id i3N2pY6j003354 for ; Thu, 22 Apr 2004 19:51:34 -0700 (PDT) (envelope-from admin2@enabled.com) From: "Noah" To: freebsd-questions@freebsd.org Date: Thu, 22 Apr 2004 18:51:34 -0800 Message-Id: <20040423024847.M48156@enabled.com> In-Reply-To: References: <20040322170038.M92688@enabled.com> <20040323011541.M31827@enabled.com> X-Mailer: Open WebMail 2.30 20040103 X-OriginatingIP: 64.121.33.4 (admin2) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 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: Fri, 23 Apr 2004 02:51:36 -0000 On Mon, 22 Mar 2004 21:37:47 -0500, Garance A Drosihn wrote > At 5:19 PM -0800 3/22/04, Noah wrote: > > > >I ask that you please be specific as to what you think is wrong > >with my newsyslog.conf file because I cant seem to figure out > >what you are talking about here? Looks like my newsyslog.conf > >file matches the recommended config: > > 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 Hmm, I suppose this is a viable option. it would be really beneficial to do all teh log rotations at midnight just to keep our logs rolling at the same time. maybe I am a little stringent here about these things. anyways cna somebody possibly recommend another program out there that rotate the apache log files all at the same time without creating memory errors for apache because of restarting the daemon each time. thanks in advance, Noah > > (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. > > -- > Garance Alistair Drosehn = gad@gilead.netel.rpi.edu > Senior Systems Programmer or gad@freebsd.org > Rensselaer Polytechnic Institute or drosih@rpi.edu > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"