From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13809 invoked by uid 1002); 11 Sep 2003 16:02:48 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 28575 invoked from network); 11 Sep 2003 16:02:48 -0000 Date: Thu, 11 Sep 2003 16:00:24 +0000 From: "Hallgrimur H. Gunnarsson" To: Wes Chow Cc: Martin Lesser , gentoo-dev@gentoo.org Message-ID: <20030911160024.GA974@data.is> Mail-Followup-To: "Hallgrimur H. Gunnarsson" , Wes Chow , Martin Lesser , gentoo-dev@gentoo.org References: <20030909211112.GA20604@data.is> <87iso1jg2m.fsf@nb-acer.better-com.de> <20030911135707.GB3889@jeeves.woahnelly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20030911135707.GB3889@jeeves.woahnelly.net> User-Agent: Mutt/1.4i Subject: Re: [gentoo-dev] New USE flag 'daemontools' as an alternative to init.d X-Archives-Salt: 02cd48fe-1bd1-4835-af6a-941a0022e1f5 X-Archives-Hash: c8183648fd69a3a9fa8c150c5442a3a1 On 11.09.2003 Wes Chow wrote: > > I always thought daemontools sounded nice, but have never tried to > actually use it for system services. Actually, there is one thing that > I'm not quite sure how it deals with, which is dependencies. For > example, under the Gentoo init scripts, you can specify that, the > "httpd" service only gets started after the "net" service is up and > running. Looking over daemontools, I wasn't able to find any obvious > way of doing this. Is there? 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. Daemontools ensures that a daemon will be running, init.d doesnt notice or restart a service if it suddenly dies, init.d also doesnt offer logging in the way daemontools can provide it. Daemontools is already being used by at least qmail and djbdns by default. By introducing a USE flag we get many advantages: *) Packages can provide daemontools and init.d support. The user can choose what to use for managing a service. *) Packages using daemontools as default now, can provide init.d support if 'daemontools' is not set. etc. I'd also like to point out two additional packages in portage that might be of use if you're using or planning on checking out daemontools. daemontools-man: provides man pages for daemontools. supervise-scripts: simplified wrappers for managing services in daemontools. You can also read up on bug #28294, where alot of discussion has been going on. Martin Schlemmer (azarah) has given a green light on this, so I'll be submitting daemontools-aware modification for ebuilds during the next days. -- hhg -- gentoo-dev@gentoo.org mailing list