From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1051 Path: news.gmane.org!not-for-mail From: Dean Hall Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: apache2 logs -> svlogd Date: Thu, 23 Feb 2006 08:36:16 -0500 Message-ID: <5FEFE54C-5354-45D3-A9A4-F936D1339295@gmail.com> References: <20060213173813.GA6585@home.power> <20060213180402.GA30800@wolfpuppy.org.uk> <20060213182520.GE6585@home.power> <20060214142532.GA1378@sta.duo> <20060214144706.GW3065@always.joy.eth.net> <20060214155838.GB29956@home.power> <20060215150946.GC15560@sta.duo> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-10--814180077" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140701791 19320 80.91.229.2 (23 Feb 2006 13:36:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2006 13:36:31 +0000 (UTC) Original-X-From: supervision-return-1287-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Feb 23 14:36:26 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1FCGdr-0005Zo-S7 for gcsg-supervision@gmane.org; Thu, 23 Feb 2006 14:36:23 +0100 Original-Received: (qmail 22109 invoked by uid 76); 23 Feb 2006 13:36:43 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 22103 invoked from network); 23 Feb 2006 13:36:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-pgp-agent:x-mailer; b=BMydSoGrS70Tm+z0UmiXFwMzkEREXAvkuulBw6zZdA4TMbMD7h4uHLOXZK0DLHY3M4jTgDwg/s31kkcKbh1JxJBOMYwOdJZtvgNan+rqg1/7HQEnFwwtPX0xaM3ODemubj+bzZ+LyeKs8cOEF9NcX7O8yZDjh4KCZz2b2A8WhmQ= In-Reply-To: <20060215150946.GC15560@sta.duo> Original-To: supervision@list.skarnet.org X-Pgp-Agent: GPGMail 1.1.1 (Tiger) X-Mailer: Apple Mail (2.746.2) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1051 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-10--814180077 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Feb 15, 2006, at 10:09 AM, George Georgalis wrote: > I use a > standard access logfile for each virtual domain, and would like > to use a svlogd for each domain's error log; both cases to manage > rotation. Not sure an access (or error) service will help me, > besides the apache logfile is being written (in addition) which is > what I thought was being avoided by using svlogd... I think the named pipes discussion is appropriate to your problem, actually. In this situation, I would probably: 1. Create a log directory per-virtual host. 2. Create "error" and "access" subdirectories of all of those. 3. In each "error" and "access" subdirectory, I would create a fifo. 4. For each virtual host, I would configure apache to write access logs to the "access" fifo in the appropriate directory; likewise with error logs, except to "error". 5. For each fifo, create a service that reads from it (exec < / whatever/access/fifo) and execs svlogd in that directory. The only problem with this is that apache might block until the svlogd service is reading from the fifo. The log services aren't really "log services" in the runsv sense, so you'd need to handle dependencies manually such that they start before apache does. (Some thing like might work, but I haven't touched it in a while, and I need to make some bugfixes.) >>> Ultimately we may need to go beat up apache developers. ;-) For more reasons than this, definitely. I'll be so happy when I can move to lighttpd. -- Dean Hall http://deanpence.com The Cornhole Show http://thecornholeshow.com --Apple-Mail-10--814180077 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- iD8DBQFD/bpRuuesc9gz3JARAuY8AJ4zjd4MrcCwcdcY6stjpLU66ZSsoACaAj+q OFC+JFDat8tp7vxh47pP3HU= =2q5t -----END PGP SIGNATURE----- --Apple-Mail-10--814180077--