From owner-freebsd-isp Wed Feb 2 14:48:24 2000 Delivered-To: freebsd-isp@freebsd.org Received: from laurel.us.net (laurel.us.net [198.240.72.4]) by builder.freebsd.org (Postfix) with ESMTP id 85D8C41D7 for ; Wed, 2 Feb 2000 14:48:20 -0800 (PST) Received: (from jjw@localhost) by laurel.us.net (8.9.3/8.9.3) id RAA49648 for freebsd-isp@freebsd.org; Wed, 2 Feb 2000 17:48:21 -0500 (EST) X-Provider: US Net - Where Business Connects! (tm) - 301-361-USNET US Net Web Site: http://www.us.net/ or via Email: info@us.net From: John Woodruff Message-Id: <200002022248.RAA49648@laurel.us.net> Subject: Re: controlling local boot sequence In-Reply-To: <20000201175018.A21189@infoteam.com> from Kenn Martin at "Feb 1, 2000 05:50:18 pm" To: freebsd-isp@freebsd.org Date: Wed, 2 Feb 2000 17:48:21 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This may seem like a far-out suggestion, but has anyone considered replacing the whole idea of a sequence of startup scripts with a concatenation of makefiles? Consider something like this: in file /etc/rc.network.m: START: network network: ifconfig ... in file /etc/rc.named.m: START: named named: network named ... in file /usr/local/etc/rc.apache.m: START: apache apache: named network apachectl ... Then, in /etc/rc or somewhere thereabouts: cat /etc/rc.*.m /usr/local/etc/rc.*.m | make -ik -f - START The idea is that you list everything that you need running when you start, and make figures out the right order. Just like now, no files need editing when you add a new subsystem. If a particular thing fails (say, MySQL), make won't start things that say they need it, but still starts things that don't (see the -k flag). > 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? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message