summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/mountd
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2002-08-14 05:44:32 +0000
committergordon <gordon@FreeBSD.org>2002-08-14 05:44:32 +0000
commit008b9b25ad2ce5dc5898051a4b7473c537da8d1b (patch)
tree74908b5b57031bedcbdeb25a3f0895ecc0a0e4b5 /etc/rc.d/mountd
parent2f904c0a96257516a43311cdac6551876ee3c559 (diff)
downloadFreeBSD-src-008b9b25ad2ce5dc5898051a4b7473c537da8d1b.zip
FreeBSD-src-008b9b25ad2ce5dc5898051a4b7473c537da8d1b.tar.gz
Clean up the scripts to use the new variables:
xntpd_* -> ntpd_* portmap_* -> rpcbind_* Also change single_mountd_enable -> mountd_enable Changing the mountd flags brings us closer to NetBSD. All of the old variable names are shimmed so you can continue to use the old variable name. Finally make /etc/rc.d/mountd no longer dependent on nfs as there are (apparently) other consumers of mountd. Submitted by: Mike Makonnen <makonnen@pacbell.net>
Diffstat (limited to 'etc/rc.d/mountd')
-rwxr-xr-xetc/rc.d/mountd16
1 files changed, 2 insertions, 14 deletions
diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd
index 6f0fe86..7de831b 100755
--- a/etc/rc.d/mountd
+++ b/etc/rc.d/mountd
@@ -11,29 +11,17 @@
. /etc/rc.subr
name="mountd"
+rcvar=`set_rcvar`
command="/usr/sbin/${name}"
required_files="/etc/exports"
start_precmd="mountd_precmd"
extra_commands="reload"
-case `${CMD_OSTYPE}` in
-FreeBSD)
- rcvar=`set_rcvar nfs_server`
- ;;
-NetBSD)
- rcvar=`set_rcvar`
- ;;
-esac
-
mountd_precmd()
{
case `${CMD_OSTYPE}` in
FreeBSD)
- if ! sysctl vfs.nfsrv >/dev/null 2>&1; then
- force_depend nfsserver || return 1
- fi
-
- if ! checkyesno portmap_enable && \
+ if ! checkyesno rpcbind_enable && \
! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
then
force_depend rpcbind || return 1
OpenPOWER on IntegriCloud