* svlogd choaking on lock
@ 2005-12-07 12:05 Joshua N Pritikin
2005-12-07 16:04 ` Paul Jarc
2005-12-07 17:24 ` Bernhard Graf
0 siblings, 2 replies; 5+ messages in thread
From: Joshua N Pritikin @ 2005-12-07 12:05 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 681 bytes --]
Hi!
I'm using svlogd for apache2 access logs. However, this is not working
too well. The problem is that when apache restarts, say a graceful USR1
restart, then it kills the old svlogd and starts a new one fast enough
that I almost always get:
svlogd: warning: unable to lock directory: /var/log/apache2/access:
temporary failure
svlogd: fatal: no functional log directories.
The error log was exhibiting the same problem but then I figured out how
to route the ErrorLog through /dev/fd/3 and then runsv took care of not
restarting svlogd. So only the access log problem remains.
Suggestions?
--
Make April 15 just another day, visit http://fairtax.org
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: svlogd choaking on lock
2005-12-07 12:05 svlogd choaking on lock 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
1 sibling, 1 reply; 5+ messages in thread
From: Paul Jarc @ 2005-12-07 16:04 UTC (permalink / raw)
Cc: supervision
Joshua N Pritikin <jpritikin@pobox.com> wrote:
> The problem is that when apache restarts, say a graceful USR1
> restart, then it kills the old svlogd and starts a new one fast enough
> that I almost always get:
>
> svlogd: warning: unable to lock directory: /var/log/apache2/access: temporary failure
> svlogd: fatal: no functional log directories.
You could change your svlogd invocation to "sleep 1 && svlogd ...".
paul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: svlogd choaking on lock
2005-12-07 12:05 svlogd choaking on lock Joshua N Pritikin
2005-12-07 16:04 ` Paul Jarc
@ 2005-12-07 17:24 ` Bernhard Graf
2005-12-07 17:38 ` Joshua N Pritikin
1 sibling, 1 reply; 5+ messages in thread
From: Bernhard Graf @ 2005-12-07 17:24 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 172 bytes --]
On Wednesday 07 December 2005 13:05, Joshua N Pritikin wrote:
> [...] I figured out
> how to route the ErrorLog through /dev/fd/3 [...]
namely?
--
Bernhard Graf
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: svlogd choaking on lock
2005-12-07 17:24 ` Bernhard Graf
@ 2005-12-07 17:38 ` Joshua N Pritikin
0 siblings, 0 replies; 5+ messages in thread
From: Joshua N Pritikin @ 2005-12-07 17:38 UTC (permalink / raw)
Cc: supervision
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-12-07 17:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-07 12:05 svlogd choaking on lock 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 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).