Bug 205393

Summary: mountd rc.d script doen't load nfsd and zfs configs if set in rc.conf.d
Product: Base System Reporter: KIKUCHI Koichiro <oi4io5me.cesium3>
Component: confAssignee: freebsd-rc (Nobody) <rc>
Status: New ---    
Severity: Affects Some People Keywords: patch
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Description Flags
simple patch to fix this issue none

Description KIKUCHI Koichiro 2015-12-18 06:19:46 UTC
Created attachment 164338 [details]
simple patch to fix this issue

mountd rc script checks nfs_server_enable and zfs_enable rcvars in it's mountd_precmd(),
but it doesn't load their configs by using`load_rc_config nfsd'.

So mountd rc script fails to modify it's own rc_flags if nfsd and/or zfs configs are set in rc.conf.d.

This problem exists in head and all supported branches.

Attached patch fixes this issue by simply adding load_rc_config nfsd and zfs lines,
though I'm not sure this is the best way to fix this issues.