Date: Mon, 21 Aug 2006 17:37:20 -0700 (PDT) From: David Thompson <dat1965@yahoo.com> To: freebsd-rc@freebsd.org Subject: /etc/rc.d/ypxfrd REQUIRE needs updating Message-ID: <20060822003720.20753.qmail@web55101.mail.re4.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi, I see that /etc/rc.d/ypxfrd has, # PROVIDE: ypxfrd # REQUIRE: rpcbind but ypxfrd_precmd() does a forcestart on both rpcbind and ypserv, 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 _domain=`domainname` if [ -z "$_domain" ]; then warn "NIS domainname(1) is not set." return 1 fi } So why isn't ypserv part of ypxfrd's REQUIRE? Using 'REQUIRE: rpcbind ypserv' would make /etc/rc naturally execute ypserv before ypxfrd, courtesy of rcorder. $ uname -v FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP -- David __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060822003720.20753.qmail>