supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Torne Wuff <torne-runit@wolfpuppy.org.uk>
Subject: Re: apache2 logs -> svlogd
Date: Mon, 13 Feb 2006 18:04:02 +0000	[thread overview]
Message-ID: <20060213180402.GA30800@wolfpuppy.org.uk> (raw)
In-Reply-To: <20060213173813.GA6585@home.power>

On Mon, Feb 13 06 at  7:38:13PM +0200, Alex Efros wrote:
> I've just got an idea how to send all apache2 logs to svlogd, and at
> first glance this idea looks not so ugly as all other ways I've seen
> before to accomplish this task. :-)

Apache can do this without any external help from FIFOs etc, just use a
configuration like this:

ErrorLog "|/usr/bin/chpst -ulogger /usr/bin/svlogd /var/log/apache2/error"
CustomLog "|/usr/bin/chpst -ulogger /usr/bin/svlogd /var/log/apache2/accesslog" combined

and so on for however many logs you want in different places. These
commands are run as the user that started apache (usually root) not the
user that apache setuid()s to, so you can call chpst and change user.

Any log string that starts with a pipe is assumed to be a binary to run.

-- 
Torne


  reply	other threads:[~2006-02-13 18:04 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 [this message]
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

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=20060213180402.GA30800@wolfpuppy.org.uk \
    --to=torne-runit@wolfpuppy.org.uk \
    /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).