From 40f9bda532d3b27e4d275293ddf3c29a8534b0ed Mon Sep 17 00:00:00 2001 From: fenner Date: Mon, 4 Nov 2002 20:51:20 +0000 Subject: Force rpcbind to start even if it wasn't enabled. This solves the ypbind problems people were having at startup. Approved by: re --- etc/rc.d/ypbind | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'etc') diff --git a/etc/rc.d/ypbind b/etc/rc.d/ypbind index c34101e..0646e4c 100755 --- a/etc/rc.d/ypbind +++ b/etc/rc.d/ypbind @@ -27,6 +27,16 @@ esac ypbind_precmd() { + case ${OSTYPE} in + FreeBSD) + if ! checkyesno rpcbind_enable && \ + ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 + then + force_depend rpcbind || return 1 + fi + ;; + esac + _domain=`domainname` if [ -z "$_domain" ]; then warn "domainname(1) is not set." -- cgit v1.1