From: Frederick Grim <fgrim@norby.dyndns.org>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] New USE flag 'daemontools' as an alternative to init.d
Date: Thu, 11 Sep 2003 14:16:09 -0400 [thread overview]
Message-ID: <20030911181609.GA5824@norby.dyndns.org> (raw)
In-Reply-To: <20030911180236.GB1087@norby.dyndns.org>
So Frederick Grim <fgrim@norby.dyndns.org> was all like, and shit:
> So Wes Chow <wes@woahnelly.net> was all like, and shit:
> >
> > > No, that'd be implemented in another layer above daemontools itself
> > > (provided that you'd even want to do that with daemontools).
> > > Daemontools is not meant to replace init.d in network initialization,
> > > which isn't a daemon, so you couldn't supervise
> > > it with daemontools. Daemontools is for managing daemons,
> > > starting, stopping, restarting, status, signal delivery.
> >
> > But, can't daemons have dependencies on other daemons as well? For
> > example, nfs depends on portmap. Many of these daemons might also
> > depend on the system logger.
ohh and I just thought of something else. In the run scripts you could probably enforce the
dependencies either by specifically naming the softlinks correctly or using some
combination of svstat and sleep in a loop. So in any case the startup order is maintained.
I can't imagine that would be anymore difficult coding wise then the current system in
init.d .
>
> bernstein has a recommended logging system that can be used in conjuction with netcat and
> multitail ( if you have a centralized log server ). Also most of these daemons can be
> configured to log to stderr or stdout. so a portmap run script may look something like
> #!/bin/sh
>
> exec /usr/bin/tcpserver 0 111 /sbin/portmap -d 2>&1
>
> with it's associated log/run script
>
> #!/bin/sh
> exec /usr/bin/setuidgid nobody /usr/bin/multilog t s2500000 /var/log/supervise/portmap
>
> which bypasses these dependancies. I have found, using daemontools that the system logger
> is only useful for a few broken daemons that can't be configured to log to stdout.
>
> So this is sort of an important point. If runscripts are included will the logging by
> default be to the stdout or to syslog?
>
> > It'd be nice to have the logger supervised
> > *and* started up before any other daemon.
> >
> > And the implication with this faq entry:
> > http://cr.yp.to/daemontools/faq/create.html#why is that daemontools is
> > supposed to mostly replace all these init systems.
> >
> > At any rate, somebody else mentioned runit, which claims to be
> > daemontools-like and has dependency support (and a more conventional
> > license). "emerge search runit" didn't come up with anything, but maybe
> > it should get some brain time as an option to daemontools?
> >
> > And after reading your bug posting, I agree that it would be nice to
> > have automatically merged run scripts for daemons just in case you want
> > to use a daemontool-like system.
> >
> > Wes
> >
> > --
> > http://www.woahnelly.net/~wes/ OpenPGP key = 0xA5CA6644
> > fingerprint = FDE5 21D8 9D8B 386F 128F DF52 3F52 D582 A5CA 6644
> >
> > --
> > gentoo-dev@gentoo.org mailing list
> >
>
> --
> #!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj $/=unpack('H*',$_);$_=`echo
> 16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
>
> --
> gentoo-dev@gentoo.org mailing list
>
--
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj $/=unpack('H*',$_);$_=`echo
16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2003-09-11 18:15 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-09 21:11 [gentoo-dev] New USE flag 'daemontools' as an alternative to init.d Hallgrimur H. Gunnarsson
2003-09-09 21:16 ` Matt Thrailkill
2003-09-09 21:43 ` Bryan D. Stine
2003-09-09 21:44 ` Hallgrimur H. Gunnarsson
2003-09-09 21:51 ` Hallgrimur H. Gunnarsson
2003-09-09 22:24 ` Bryan D. Stine
2003-09-10 9:33 ` Juan Jesus Prieto
2003-09-10 6:46 ` Martin Lesser
2003-09-11 13:57 ` Wes Chow
2003-09-11 16:00 ` Hallgrimur H. Gunnarsson
2003-09-11 13:53 ` Henti Smith
2003-09-11 16:13 ` Hallgrimur H. Gunnarsson
2003-09-11 16:28 ` Andrew Gaffney
2003-09-11 14:01 ` Henti Smith
2003-09-11 16:27 ` Wes Chow
2003-09-11 16:38 ` Hallgrimur H. Gunnarsson
2003-09-11 18:02 ` Frederick Grim
2003-09-11 18:16 ` Frederick Grim [this message]
2003-09-11 18:18 ` Hallgrimur H. Gunnarsson
[not found] ` <20030911183642.GC5824@norby.dyndns.org>
2003-09-11 18:46 ` [gentoo-dev] Re: gentoo-dev@gentoo.org Hallgrimur H. Gunnarsson
2003-09-17 7:00 ` [gentoo-dev] New USE flag 'daemontools' as an alternative to init.d Mark Francis
2003-09-17 14:38 ` Petre Rodan
2003-09-11 12:19 ` Petre Rodan
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=20030911181609.GA5824@norby.dyndns.org \
--to=fgrim@norby.dyndns.org \
--cc=gentoo-dev@gentoo.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