/etc/rc.d/ypxfrd REQUIRE needs updating
David Thompson
dat1965 at yahoo.com
Tue Aug 22 00:37:21 UTC 2006
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 at 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
More information about the freebsd-rc
mailing list