glfs/general/genlib/libfam/libfam-config.xml

51 lines
1.2 KiB
XML
Raw Normal View History

<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>If you use inetd, add the fam entry to /etc/inetd.conf with the
following command: </para>
<para><userinput>
echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/bin/fam fam" &gt;&gt; /etc/inetd.conf
</userinput></para>
<para>
If you use xinetd, add an entry to
<filename>/etc/xinetd.conf</filename> with the following command:
</para>
<para>
<screen><userinput>
cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"
# 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
}
EOF
</userinput></screen></para>
</sect3>
</sect2>