From: Joshua N Pritikin <jpritikin@pobox.com>
Cc: supervision@list.skarnet.org
Subject: Re: svlogd choaking on lock
Date: Wed, 7 Dec 2005 23:08:58 +0530 [thread overview]
Message-ID: <20051207173858.GH10371@always.joy.eth.net> (raw)
In-Reply-To: <200512071824.46696.graf@augensalat.de>
[-- Attachment #1: Type: text/plain, Size: 865 bytes --]
On Wed, Dec 07, 2005 at 06:24:46PM +0100, Bernhard Graf wrote:
> On Wednesday 07 December 2005 13:05, Joshua N Pritikin wrote:
> > [...] I figured out
> > how to route the ErrorLog through /dev/fd/3 [...]
>
> namely?
Well, the obvious part is the apache2 conf:
ErrorLog /dev/fd/3
And run script is:
exec /usr/sbin/apache2 -DNO_DETACH -E /dev/fd/1 3>&1
This has the nice property that the -E output goes through the same
pipe as the error log. Sometimes I don't get a clean restart for
whatever reason, so I added a finish script:
sleep 5
rm -f /var/log/apache2/error/lock # maybe not needed
pkill -9 apache2
And the log script is as usual:
exec svlogd -tt /var/log/apache2/error
I like -tt because modperl warnings don't otherwise get a timestamp.
--
Make April 15 just another day, visit http://fairtax.org
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2005-12-07 17:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-07 12:05 Joshua N Pritikin
2005-12-07 16:04 ` Paul Jarc
2005-12-07 16:43 ` Joshua N Pritikin
2005-12-07 17:24 ` Bernhard Graf
2005-12-07 17:38 ` Joshua N Pritikin [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=20051207173858.GH10371@always.joy.eth.net \
--to=jpritikin@pobox.com \
--cc=supervision@list.skarnet.org \
/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).