Date: Wed, 12 Jan 2005 21:20:07 -0600 From: Vulpes Velox <v.velox@vvelox.net> To: freebsd-hackers@freebsd.org Subject: Re: RC scripts and NIS UPDATE Message-ID: <20050112212007.633c2d7b@fennec.local.lan> In-Reply-To: <20050111183439.75e6b334@fennec.local.lan> References: <20050111183439.75e6b334@fennec.local.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
--Multipart_Wed__12_Jan_2005_21_20_07_-0600_9jTsu5xjt8e25pgj Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Well I got it working. It adds two more variables to rc.conf. nis_server_available_test: Toggles nis test on or off nis_avail_tester: script to use for testing If the script exits with a 1, NIS is not enabled. I am currently using a script that ,using md5, hashes the out put from arp and compares it to a good hash. Any ways, not heard any feed back on this yet. I would be really interested to hear some opinions or suggestions on this. On Tue, 11 Jan 2005 18:34:39 -0600 Vulpes Velox <v.velox@vvelox.net> wrote: > I am currently am currently working on making modifications to the > rc system to allow NIS to not be started if the server is not > present. > > So far I am just looking at disabling ypbind at start if certain > conditions are meet. The idea it is to run a script that checks if > the servers or server is present and then if it is, ypbind if > enabled, if not it modifies the current variables to stop ypbind > from being run and prints a message about it to stdout. > > >From my understanding this is the one that needs disabled if the > system is to operate outside of it's usual network. Allowing it to > fall back to /etc/ for it's information. I've tested it by disabling > it upon startup manually and it worked fine. Is there any other NIS > related scripts I should make changes to, or is this the only one I > should worry about? > > If any one have opinions or any input on any of this, I would be > interested to hear it. --Multipart_Wed__12_Jan_2005_21_20_07_-0600_9jTsu5xjt8e25pgj Content-Type: application/octet-stream; name=ypbind Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=ypbind IyEvYmluL3NoCiMKIyAkTmV0QlNEOiB5cGJpbmQsdiAxLjUgMjAwMi8wMy8yMiAwNDozNDowMSB0 aG9ycGVqIEV4cCAkCiMgJEZyZWVCU0Q6IHNyYy9ldGMvcmMuZC95cGJpbmQsdiAxLjguMi4xIDIw MDQvMTAvMTAgMD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CglfZG9tYWluPWBkb21haW5uYW1lYAoJaWYgWyAteiAiJF9kb21haW4iIF07IHRoZW4K CQl3YXJuICJOSVMgZG9tYWlubmFtZSgxKSBpcyBub3Qgc2V0LiIKCQlyZXR1cm4gMQoJZmkKfQoK cnVuX3JjX2NvbW1hbmQgIiQxIgo= --Multipart_Wed__12_Jan_2005_21_20_07_-0600_9jTsu5xjt8e25pgj--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050112212007.633c2d7b>