diff options
author | fenner <fenner@FreeBSD.org> | 2002-11-04 20:51:20 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 2002-11-04 20:51:20 +0000 |
commit | 40f9bda532d3b27e4d275293ddf3c29a8534b0ed (patch) | |
tree | 188d84d3b02c5cec756f9290b2801345d961998b /etc/rc.d/ypbind | |
parent | e9d17cac9247e138387bd540bc94490b92d850e1 (diff) | |
download | FreeBSD-src-40f9bda532d3b27e4d275293ddf3c29a8534b0ed.zip FreeBSD-src-40f9bda532d3b27e4d275293ddf3c29a8534b0ed.tar.gz |
Force rpcbind to start even if it wasn't enabled. This solves the ypbind
problems people were having at startup.
Approved by: re
Diffstat (limited to 'etc/rc.d/ypbind')
-rwxr-xr-x | etc/rc.d/ypbind | 10 |
1 files changed, 10 insertions, 0 deletions
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." |