Date: Mon, 15 May 2006 13:53:21 -0400 From: Mike Jakubik <mikej@rogers.com> To: Duane Whitty <duane@greenmeadow.ca> Cc: ports@FreeBSD.org Subject: Re: freeradius starts before mysql Message-ID: <4468C011.2080404@rogers.com> In-Reply-To: <4466C4F3.6000101@greenmeadow.ca> References: <446696B7.1070009@rogers.com> <4466C4F3.6000101@greenmeadow.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Duane Whitty wrote: > Hi Mike, > > Sorry for my earlier botched attempt :) > > I verified that according to rc(8) scripts in > /usr/local/etc/rc.d are processed in alphabetical > order (lexicographical is the word I couldn't recall originally). > > I did some testing. > > I created a script /usr/local/etc/rc.d/xxxserver > > with the lines > > # PROVIDE: xxxserver > # REQUIRE: NETWORKING SERVERS > # BEFORE: DAEMON > # KEYWORD: shutdown > > and I modified /usr/local/etc/rc.d/mysql-server with > > # REQUIRE: xxxserver > # BEFORE: DAEMON > > > With this I caused xxxserver to run before mysql. > > It doesn't -- seem -- to adversely effect mysql to start earlier > in the boot sequence than it normally would > > I did test all of the above with a reboot. > > > > If in /usr/local/etc/rc.d/freeradius you change # REQUIRE: NETWORKING > SERVERS to > > REQUIRE: mysql > > and in /usr/local/etc/rc.d/mysql-server you change > > # REQUIRE: LOGIN to # REQUIRE: NETWORKING SERVERS > and add > > # BEFORE: DAEMON > > Then mysql should get started before freeradius. > > I'd test this out for you but as I said in my earlier off-list message > I don't have freeradius installed. Thanks for the info. I will try the second method. But im finding this rcNG stuff a little weird. If application A provides X, and application B requires X, shouldn't A always start before B? If not, them my understanding of "require" and "provide" is flawed i guess...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4468C011.2080404>