From owner-freebsd-current Sun Jun 16 5:35:16 2002 Delivered-To: freebsd-current@freebsd.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by hub.freebsd.org (Postfix) with ESMTP id 1AAD537B410 for ; Sun, 16 Jun 2002 05:35:13 -0700 (PDT) Received: from kokeb.ambesa.net ([64.166.84.78]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GXS00KTUTMO28@mta6.snfc21.pbi.net> for current@FreeBSD.ORG; Sun, 16 Jun 2002 05:35:13 -0700 (PDT) Received: from kokeb.ambesa.net (tanstaafl@localhost [127.0.0.1]) by kokeb.ambesa.net (8.12.3/8.12.3) with ESMTP id g5GCeV37001336; Sun, 16 Jun 2002 05:40:31 -0700 (PDT envelope-from mikem@kokeb.ambesa.net) Received: (from mikem@localhost) by kokeb.ambesa.net (8.12.3/8.12.3/Submit) id g5GCeUpI001335; Sun, 16 Jun 2002 05:40:30 -0700 (PDT envelope-from mikem) Date: Sun, 16 Jun 2002 05:40:30 -0700 From: Mike Makonnen Subject: Re: HEADS UP: rc.d is in the tree In-reply-to: <3D0BBD43.6623BCBD@mindspring.com> To: Terry Lambert Cc: current@FreeBSD.ORG, danny@cs.huji.ac.il, gordont@gnf.org Message-id: <20020616054030.29e6ed35.makonnen@pacbell.net> MIME-version: 1.0 X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i386--freebsd5.0) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20020614142308.7ddeaed0.makonnen@pacbell.net> <3D0A6E7B.F243329A@mindspring.com> <20020615121247.A6971@dragon.nuxi.com> <3D0B9A60.A4A816A4@mindspring.com> <20020615144656.06f8404d.makonnen@pacbell.net> <3D0BBD43.6623BCBD@mindspring.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 15 Jun 2002 15:18:43 -0700 Terry Lambert wrote: > > > > Otherwise circular dependencies. > > > > That's what rcorder(8) is there for. > > It's not that simple. > > The most obvious example is the need to use DNS in order to look > up syslog hosts, and whether you start syslogd before you start > DNS, if DNS needs to syslog errors. > > Since the DNS information is only used by syslogd when actual > logging to a remote host takes place, it should be possible to > say that syslog has a soft dependency on DNS, and DNS has a hard > dependency on syslog. > So, what you're describing is a chicken and egg problem. The solution is simple, the sysadmin decides which one he wants to start first by fiddling with the REQUIRE and BEFORE lines, or the script can make use of the force_depend() subroutine to start required services that aren't already started. Cheers, Mike Makonnen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message