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.
This commit is contained in:
Mike Makonnen 2007-04-13 06:42:25 +00:00
parent 0fdce72711
commit e70b852038

View File

@ -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