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:
parent
0fdce72711
commit
e70b852038
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user