mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 06:27:16 +08:00
9e1bc76773
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@210 af4574ff-66df-0310-9fd7-8a98e5e911e0
54 lines
1.3 KiB
XML
54 lines
1.3 KiB
XML
<sect2>
|
|
<title>Configuring libfam</title>
|
|
|
|
<sect3><title>Config files</title>
|
|
|
|
<para><filename>/etc/rpc</filename>,
|
|
<filename>/etc/fam.conf</filename>,
|
|
<filename>/etc/inetd.conf</filename>,
|
|
<filename>/etc/xinetd.d/fam</filename>,
|
|
or <filename>/etc/xinetd.conf</filename>
|
|
</para>
|
|
</sect3>
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
<para>Configuring the file alteration monitor.</para>
|
|
|
|
<para>Add this line to /etc/rpc:</para>
|
|
<para><userinput>
|
|
sgi_fam 391002 fam # File Alteration Monitor</userinput>
|
|
</para>
|
|
|
|
<para>If you use inetd, add this line to /etc/inetd.conf: </para>
|
|
<para><userinput>
|
|
sgi_fam/1-2 stream rpc/tcp wait root /usr/bin/fam fam
|
|
</userinput></para>
|
|
|
|
<para>
|
|
If you use xinetd, create the <filename>/etc/xinetd.d/fam</filename>
|
|
file or add an entry to <filename>/etc/xinetd.conf</filename> as
|
|
follows: </para>
|
|
<para>
|
|
<screen><userinput>
|
|
# default: on
|
|
# description: FAM - file alteration monitor
|
|
service sgi_fam
|
|
{
|
|
type = RPC UNLISTED
|
|
socket_type = stream
|
|
user = root
|
|
group = nobody
|
|
server = /usr/bin/fam
|
|
wait = yes
|
|
protocol = tcp
|
|
rpc_version = 2
|
|
rpc_number = 391002
|
|
}
|
|
</userinput></screen></para>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|