Date: Tue, 22 Aug 2006 09:39:38 -0500 From: Brooks Davis <brooks@one-eyed-alien.net> To: David Thompson <dat1965@yahoo.com> Cc: freebsd-rc@freebsd.org Subject: Re: /etc/rc.d/ypxfrd REQUIRE needs updating Message-ID: <20060822143938.GB12125@lor.one-eyed-alien.net> In-Reply-To: <20060822003720.20753.qmail@web55101.mail.re4.yahoo.com> References: <20060822003720.20753.qmail@web55101.mail.re4.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--KFztAG8eRSV9hGtP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 21, 2006 at 05:37:20PM -0700, David Thompson wrote: > Hi, >=20 > I see that /etc/rc.d/ypxfrd has, >=20 > # PROVIDE: ypxfrd > # REQUIRE: rpcbind >=20 > but ypxfrd_precmd() does a forcestart on both rpcbind and > ypserv, >=20 > ypxfrd_precmd() > { > if ! checkyesno rpcbind_enable && \ > ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 > then > force_depend rpcbind || return 1 > fi > if ! checkyesno nis_server_enable && \ > ! /etc/rc.d/ypserv forcestatus 1>/dev/null 2>&1 > then > force_depend ypserv || return 1 > fi >=20 > _domain=3D`domainname` > if [ -z "$_domain" ]; then > warn "NIS domainname(1) is not set." > return 1 > fi > } >=20 > So why isn't ypserv part of ypxfrd's REQUIRE? >=20 > Using 'REQUIRE: rpcbind ypserv' would make /etc/rc > naturally execute ypserv before ypxfrd, courtesy of > rcorder. This sounds correct. This example highlights one the weakness of rc.d vs Apple's startup scripts. We only have a way to control ordering, not a way say "don't start _this_ if _that_ didn't start". -- Brooks --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE6xcpXY6L6fI4GtQRAsP6AJ9C02QM8kv1hcTFUcJv9TNvrRgPZQCeMgm2 GMaaO1wsQRHidNs8PzYSIAw= =389/ -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060822143938.GB12125>