From owner-freebsd-rc@FreeBSD.ORG Tue Aug 22 00:37:21 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2A5416A4DA for ; Tue, 22 Aug 2006 00:37:21 +0000 (UTC) (envelope-from dat1965@yahoo.com) Received: from web55101.mail.re4.yahoo.com (web55101.mail.re4.yahoo.com [206.190.58.150]) by mx1.FreeBSD.org (Postfix) with SMTP id 4990D43D45 for ; Tue, 22 Aug 2006 00:37:21 +0000 (GMT) (envelope-from dat1965@yahoo.com) Received: (qmail 20755 invoked by uid 60001); 22 Aug 2006 00:37:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=1QLvYjRtmmbnmArQkSERb6ycD1xfMngQsnbRwDN6QXp0vLUqdZNbeKtWwBa1EJCn7n3dbFcOVdWuopMJmLAMmktUWyppIRNmIQzqMgZL9UaTTq6he/yRsL1VALlE9n46uZZ74VUzgUon1gsPDxlcV9FFdxDDkLzwYxCJ8h/62II= ; Message-ID: <20060822003720.20753.qmail@web55101.mail.re4.yahoo.com> Received: from [67.131.247.220] by web55101.mail.re4.yahoo.com via HTTP; Mon, 21 Aug 2006 17:37:20 PDT Date: Mon, 21 Aug 2006 17:37:20 -0700 (PDT) From: David Thompson To: freebsd-rc@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: /etc/rc.d/ypxfrd REQUIRE needs updating X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2006 00:37:21 -0000 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