From: "George Georgalis" <george@galis.org>
Subject: Re: apache2 logs -> svlogd
Date: Tue, 14 Feb 2006 09:25:32 -0500 [thread overview]
Message-ID: <20060214142532.GA1378@sta.duo> (raw)
In-Reply-To: <20060213182520.GE6585@home.power>
On Mon, Feb 13, 2006 at 08:25:20PM +0200, Alex Efros wrote:
>
> ----- Forwarded message from Joshua N Pritikin <jpritikin@pobox.com> -----
> Date: Wed, 7 Dec 2005 17:35:42 +0530
> From: Joshua N Pritikin <jpritikin@pobox.com>
> To: supervision@list.skarnet.org
> Subject: svlogd choaking on lock
>
> 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
>
> ----- End forwarded message -----
>
>Recommended solution was put 'sleep 1' before svlogd, but for me it's a
>little ugly and unreliable.
I just checked that thread on gmane.
----------------------------------------
Date: 2005-12-07 16:04:02 GMT
From: Paul Jarc <prj <at> po.cwru.edu>
Subject: Re: svlogd choaking on lock
Newsgroups: gmane.comp.sysutils.supervision.general
Joshua N Pritikin <jpritikin <at> 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
----------------------------------------
Since I only use svlogd for ErrorLog and one process for each
virtual domain, I'm interested in making this approach work. But
I don't completely understand what the problem is; or the downside
of using "sleep 1 && svlogd ..." -- I understand it would use
ulimit resources (filling the pipe) till svlogd starts, but so
what? Something ugly _might_ be apache pipe exec... something more
reliable might be a loop to restart svlogd if it fails. Thoughts?
// George
--
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george@galis.org
next prev parent reply other threads:[~2006-02-14 14:25 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 [this message]
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=20060214142532.GA1378@sta.duo \
--to=george@galis.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).