Suggest using /etc/rc.d/mountd onereload' instead of reload',

to make sure that `mountd' is (re)loaded even if it's not yet
enabled in `/etc/rc.conf'.

Ideally, `mountd' should already be enabled in `rc.conf', but if
`mountd_enable' is not set to "YES" in `rc.conf', then running
the rc.d script with a plain `reload' argument does nothing.
Using `onereload' (with the rc.d-specific `one' prefix) makes
sure that `mountd' is temporarily enabled for the run of this
rc.d script and it does indeed reload its config files.

Suggested by:   Volodymyr Kostyrko <arcade@synergetica.dn.ua>
Mailing List:   freebsd-doc
Message-Id:     <452C187F.5030403@synergetica.dn.ua>
This commit is contained in:
Giorgos Keramidas 2006-10-18 20:47:50 +00:00
parent 908d7e6654
commit a01b4db776
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=28881

View file

@ -772,7 +772,7 @@ mountd_flags="-r"</programlisting>
<para>or by invoking the <command>mountd</command> &man.rc.8; script
with the appropriate parameter:</para>
<screen>&prompt.root; <userinput>/etc/rc.d/mountd reload</userinput></screen>
<screen>&prompt.root; <userinput>/etc/rc.d/mountd onereload</userinput></screen>
<para>Please refer to <xref linkend="configtuning-rcd"> for more
information about using rc scripts.</para>