/etc/rc.d/ypxfrd REQUIRE needs updating
Florent Thoumie
flz at xbsd.org
Tue Aug 22 12:34:48 UTC 2006
On Mon, 2006-08-21 at 17:37 -0700, David Thompson wrote:
> 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.
Makes sense to me.
--
Florent Thoumie
flz at FreeBSD.org
FreeBSD Committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20060822/d62ac723/attachment.pgp
More information about the freebsd-rc
mailing list