summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2007-04-13 06:42:25 +0000
committermtm <mtm@FreeBSD.org>2007-04-13 06:42:25 +0000
commit5125a57954821a1587bec98032ed4a3adf86406c (patch)
tree950315d56c352a3a234afca245b6957bd1c51756 /etc
parentc268e1cbbc5e019e165d7a465ba55dde5c7a0de6 (diff)
downloadFreeBSD-src-5125a57954821a1587bec98032ed4a3adf86406c.zip
FreeBSD-src-5125a57954821a1587bec98032ed4a3adf86406c.tar.gz
o Look for a zfs(1) exports file only if it exists and is readable. If
we don't do this and the file doesn't exist mountd(8) will abort. o The mountd(8) daemon creates a pidfile, so use it.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/mountd3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd
index 5edbb85..420a247 100755
--- a/etc/rc.d/mountd
+++ b/etc/rc.d/mountd
@@ -13,6 +13,7 @@
name="mountd"
rcvar=`set_rcvar`
command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
required_files="/etc/exports"
start_precmd="mountd_precmd"
extra_commands="reload"
@@ -37,7 +38,7 @@ mountd_precmd()
fi
fi
- if checkyesno zfs_enable ; then
+ if checkyesno zfs_enable && [ -r /etc/zfs/exports ]; then
rc_flags="${rc_flags} /etc/exports /etc/zfs/exports"
fi
OpenPOWER on IntegriCloud