From: Dean Hall <deanpence@gmail.com>
Subject: Re: apache2 logs -> svlogd
Date: Thu, 23 Feb 2006 08:36:16 -0500 [thread overview]
Message-ID: <5FEFE54C-5354-45D3-A9A4-F936D1339295@gmail.com> (raw)
In-Reply-To: <20060215150946.GC15560@sta.duo>
[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]
On Feb 15, 2006, at 10:09 AM, George Georgalis wrote:
<snip>
> 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 <http://sysinit.sourceforge.net> 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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 155 bytes --]
prev parent reply other threads:[~2006-02-23 13:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-13 17:38 Alex Efros
2006-02-13 18:04 ` Torne Wuff
2006-02-13 18:25 ` Alex Efros
2006-02-14 14:25 ` George Georgalis
2006-02-14 14:47 ` Joshua N Pritikin
2006-02-14 15:58 ` Alex Efros
2006-02-15 15:09 ` George Georgalis
2006-02-23 13:36 ` Dean Hall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5FEFE54C-5354-45D3-A9A4-F936D1339295@gmail.com \
--to=deanpence@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).