Hone the rpcbind dependency checking.

Submitted by:	Mike Makonnen <makonnen@pacbell.net>
This commit is contained in:
Doug Barton 2002-06-21 19:50:01 +00:00
parent 83f55d112f
commit 032c8774fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98585
3 changed files with 4 additions and 4 deletions

View File

@ -13,6 +13,7 @@
name="amd"
rcvar=`set_rcvar`
command="/usr/sbin/${name}"
case `${CMD_OSTYPE}` in
FreeBSD)
@ -24,7 +25,6 @@ NetBSD)
required_dirs="$amd_dir"
required_files="/etc/amd.conf"
required_vars="rpcbind"
command="/usr/sbin/${name}"
;;
esac
@ -37,7 +37,7 @@ amd_precmd()
fi
if ! checkyesno portmap_enable && \
[ -z "`check_process ${portmap_program}`" ]
! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
then
force_depend rpcbind || return 1
fi

View File

@ -35,7 +35,7 @@ mountd_precmd()
fi
if ! checkyesno portmap_enable && \
[ -z "`check_process ${portmap_program}`" ]
! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
then
force_depend rpcbind || return 1
fi

View File

@ -17,12 +17,12 @@ name="rpcbind"
# subroutines in rc.subr won't catch it.
#
load_rc_config $name
command="${portmap_program:-/usr/sbin/${name}}"
case `${CMD_OSTYPE}` in
FreeBSD)
pidfile=
rcvar="portmap_enable"
command="${portmap_program:-/usr/sbin/${name}}"
eval ${name}_flags=\"${portmap_flags}\"
;;
NetBSD)