From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 12:24:12 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16E5A16A4CE for ; Sun, 30 Nov 2003 12:24:12 -0800 (PST) Received: from priv-edtnes57.telusplanet.net (defout.telus.net [199.185.220.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7170C43FBD for ; Sun, 30 Nov 2003 12:24:09 -0800 (PST) (envelope-from cpressey@catseye.mine.nu) Received: from catbus.biscuit.boo ([154.5.166.198]) by priv-edtnes57.telusplanet.netSMTP <20031130202409.JFUC18941.priv-edtnes57.telusplanet.net@catbus.biscuit.boo>; Sun, 30 Nov 2003 13:24:09 -0700 Date: Sun, 30 Nov 2003 12:25:34 -0800 From: Chris Pressey To: Marty Landman Message-Id: <20031130122534.486bb2fa.cpressey@catseye.mine.nu> In-Reply-To: <6.0.0.22.0.20031130142935.06c35f48@pop.face2interface.com> References: <6.0.0.22.0.20031130132339.0773a440@pop.face2interface.com> <200311302002.02402.freebsd-questions@webteckies.org> <6.0.0.22.0.20031130142935.06c35f48@pop.face2interface.com> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@webteckies.org cc: questions@freebsd.org Subject: Re: apache has fallen [and it won't get up] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2003 20:24:12 -0000 On Sun, 30 Nov 2003 14:56:19 -0500 Marty Landman wrote: > Interesting. /etc/resolv.conf has last been changed like 10 minutes > ago [not knowingly by me though]. All it says is > > search mshome.net > nameserver 192.168.0.1 > > Since my workstation is delliver.mshome.net and also shares its > internet connection on my lan via ics from and its ip addr on the lan > is as shown, what's up do you think? Are you running a DHCP client on that machine? In my experience, the DHCP client that comes with FreeBSD will write a new /etc/resolv.conf file whenever it obtains a new lease. > [...] > If it's really just apache that's having the trouble I wonder if it > could be a race condition? I notice that apache starts from a shell > cmd when fbsd reboots. > > Swami: ls -l /usr/local/etc/rc.d/*.sh > -r-xr-xr-- 1 root pgsql 875 Nov 11 17:24 > /usr/local/etc/rc.d/010.pgsql.sh-rwxr-x--x 1 root wheel 407 Nov 12 > 19:33 /usr/local/etc/rc.d/apache2.sh-rwxr-xr-- 1 root wheel 144 Nov > 12 16:18 /usr/local/etc/rc.d/landns.root.sh Swami: > > What determines the sequence in which these three scripts run? Alphabetical (actually ASCII) sort order. So 010.pgsql.sh will run first, then apache2.sh, then landns.root.sh. If you want, say, landns.root.sh to run first, rename it 005.landns.root.sh, or something to that effect. HTH, -Chris