Mention both the rc.d 'reload' and HUP signal to mountd method of

reloading /etc/exports changes.

PR:		docs/93522
Submitted by:	Daniel Gerzo <danger@rulez.sk>
This commit is contained in:
Giorgos Keramidas 2006-05-10 19:23:31 +00:00
parent d6a6d98242
commit 847b9cea9f
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=27796

View file

@ -773,14 +773,21 @@ mountd_flags="-r"</programlisting>
/exports -alldirs -maproot=root client01 client02
/exports/obj -ro</programlisting>
<para>You must restart
<application>mountd</application> whenever you modify
<filename>/etc/exports</filename> so the changes can take effect.
This can be accomplished by sending the HUP signal
to the <command>mountd</command> process:</para>
<para>The <application>mountd</application> daemon must be forced to
recheck the <filename>/etc/exports</filename> file whenever it has
been modified, so the changes can take effect. This can be
accomplished either by sending a HUP signal to the running daemon:</para>
<screen>&prompt.root; <userinput>kill -HUP `cat /var/run/mountd.pid`</userinput></screen>
<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>
<para>Please refer to <xref linkend="configtuning-rcd"> for more
information about using rc scripts.</para>
<para>Alternatively, a reboot will make FreeBSD set everything
up properly. A reboot is not necessary though.
Executing the following commands as <username>root</username>