glfs/general/genlib/fam/fam-config.xml
Tushar Teredesai a58b8969e3 /usr/bin/fam moved to /usr/sbin/famd
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1936 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-03-26 18:59:22 +00:00

57 lines
1.9 KiB
XML

<sect2>
<title>Configuring <application><acronym>FAM</acronym></application></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 <application>inetd</application>, add the
<application><acronym>FAM</acronym></application> entry to
<filename>/etc/inetd.conf</filename> with the
following command: </para>
<screen><userinput><command>echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd fam" &gt;&gt; /etc/inetd.conf</command></userinput></screen>
<para>If you use <application>xinetd</application>, add an entry to
<filename>/etc/xinetd.conf</filename> with the following command (be
sure the "nogroup" group exists):</para>
<screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
# description: FAM - file alteration monitor
service sgi_fam
{
type = RPC UNLISTED
socket_type = stream
user = root
group = nogroup
server = /usr/sbin/famd
wait = yes
protocol = tcp
rpc_version = 2
rpc_number = 391002
}
<command>EOF</command></userinput></screen>
<para>If you do not have any inetd daemon installed and have no
wish to install one, you can also start fam during system startup
by installing <filename>/etc/rc.d/init.d/fam</filename>
init script included in the
<xref linkend="intro-important-bootscripts"/> package.</para>
<screen><userinput><command>make install-fam</command></userinput></screen>
</sect3>
</sect2>