From owner-freebsd-isp Tue Feb 1 15:50:10 2000 Delivered-To: freebsd-isp@freebsd.org Received: from outlier.axl.net (outlier.axl.net [216.66.11.20]) by builder.freebsd.org (Postfix) with SMTP id 781553FAE for ; Tue, 1 Feb 2000 15:50:07 -0800 (PST) Received: (qmail 25031 invoked from network); 1 Feb 2000 23:49:58 -0000 Received: from ws-01.matthennigus.lightningdsl.net (HELO sinister) (216.66.30.66) by outlier.axl.net with SMTP; 1 Feb 2000 23:49:58 -0000 Reply-To: From: "Matthew B. Henniges" To: "Kenn Martin" , Subject: RE: controlling local boot sequence Date: Tue, 1 Feb 2000 18:52:21 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20000201175018.A21189@infoteam.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Well you could take the simple route and put a "sleep 10" in the mysql.sh shell script or you could add a loop at the end that check wether the mysql (mysqladmin status?)server had come up yet, and if not slept for a bit and tried again, until the mysql server came up. Matthew B. Henniges Axl.net Communications http://www.axl.net (203) 552-1714 > -----Original Message----- > From: owner-freebsd-isp@FreeBSD.ORG > [mailto:owner-freebsd-isp@FreeBSD.ORG]On Behalf Of Kenn Martin > Sent: Tuesday, February 01, 2000 5:50 PM > To: freebsd-isp@FreeBSD.ORG > Subject: controlling local boot sequence > > > 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 know the /etc/periodic files are named > with a numbering scheme so I tried that in /usr/local/etc/rc.d without > any consistent success. Packages that fail to start during the boot > process can be started manually using these exact same scripts. > > It appears that I can merge the multiple scripts into one master script, > but that doesn't exactly seem like the proper way to handle the problem. > > How do others handle these type of dependencies? > > kenn > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message