supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Laurent Bercot <ska-supervision@skarnet.org>
Subject: Re: Logging everything in the database
Date: Thu, 23 Sep 2004 12:36:26 +0200	[thread overview]
Message-ID: <20040923103626.GA23518@skarnet.org> (raw)
In-Reply-To: <1095929269.41528db5a0c17@mail.games-expert.com>

> I wanted to have it launched at the system boot, but I still wanted it to be
> supervised. So I fell back on using a fifo and opening it RDWR on Linux to no
> block the main process (writing to a pipe not opened RDWR when the reader isn't
> started blocks...).
> So tell me about this idea, what do you think about it, and what could be wrong
> with it...

 I've done the exact same thing, to log svscan's stderr using a supervised
multilog. Except that O_RDWR on a fifo isn't portable - it has no real
Unix meaning; you'd better use 2 fds, one reading, one writing. I've
designed a small tool to do just that: see <URL:
 http://www.skarnet.org/software/execline/redirfd.html >

-- 
 Ska


  reply	other threads:[~2004-09-23 10:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-23  8:47 rolphin
2004-09-23 10:36 ` Laurent Bercot [this message]
2004-09-23 13:13   ` rolphin

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=20040923103626.GA23518@skarnet.org \
    --to=ska-supervision@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).