Hone the rpcbind dependency checking.
Submitted by: Mike Makonnen <makonnen@pacbell.net>
This commit is contained in:
parent
83f55d112f
commit
032c8774fa
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user