mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-09 11:47:24 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@91 af4574ff-66df-0310-9fd7-8a98e5e911e0
48 lines
1.1 KiB
XML
48 lines
1.1 KiB
XML
<sect2>
|
|
<title>Configuring libfam</title>
|
|
|
|
<sect3><title>Config files</title>
|
|
|
|
<para><userinput>/etc/inetd.conf</userinput>,
|
|
<userinput>/etc/rpc</userinput>, <userinput>/etc/xinetd.d/fam</userinput></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 /etc/xinetd.d/fam file as:</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>
|
|
|