From owner-freebsd-isp Tue Feb 1 17:27:15 2000 Delivered-To: freebsd-isp@freebsd.org Received: from mail.numachi.com (numachi.numachi.com [198.175.254.2]) by builder.freebsd.org (Postfix) with SMTP id 053393FD2 for ; Tue, 1 Feb 2000 17:27:07 -0800 (PST) Received: (qmail 7235 invoked by uid 1001); 2 Feb 2000 00:49:32 -0000 Date: Tue, 1 Feb 2000 19:49:32 -0500 From: Brian Reichert To: Kenn Martin Cc: freebsd-isp@FreeBSD.ORG Subject: Re: controlling local boot sequence Message-ID: <20000201194931.B3152@numachi.com> References: <20000201175018.A21189@infoteam.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <20000201175018.A21189@infoteam.com>; from kmartin@infoteam.com on Tue, Feb 01, 2000 at 05:50:18PM -0500 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Feb 01, 2000 at 05:50:18PM -0500, Kenn Martin wrote: > Looking for some tips on controlling local startup sequences when > using MySQL. I imagine that other ISPs have similar configurations. > > FreeBSD 3.4-STABLE machines, scripts in /usr/local/etc/rc.d (some > created by /usr/ports/* and some myself). Script names end in .sh, > are executable, and are named starting with numbers so as to > attempt to control sequencing. > > The problem we are experiencing is that at boot time, MySQL is being > loaded but other packages which depend on MySQL, such as Apache and > ICRADIUS, often fail. These packages are probably starting before MySQL > finishes its initialization. I'm evoling away from this startup method, for the very reason you describe. I've got a wad of startup scripts, that, among other things, use lsof(8) to note when the application has opened a specific file. Take the timing right out of the question. Chucking in a 'sleep 10' or the like doesn't scale... -- Brian 'you Bastard' Reichert reichert@numachi.com 37 Crystal Ave. #303 Daytime number: (781) 899-7484 x704 Derry NH 03038-1713 USA Intel architecture: the left-hand path To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message