1 | <sect2>
|
---|
2 | <title>Configuring <application><acronym>FAM</acronym></application></title>
|
---|
3 |
|
---|
4 | <sect3><title>Config files</title>
|
---|
5 |
|
---|
6 | <para><filename>/etc/rpc</filename>,
|
---|
7 | <filename>/etc/fam.conf</filename>,
|
---|
8 | <filename>/etc/inetd.conf</filename>,
|
---|
9 | <filename>/etc/xinetd.d/fam</filename>
|
---|
10 | or <filename>/etc/xinetd.conf</filename>
|
---|
11 | </para>
|
---|
12 | </sect3>
|
---|
13 |
|
---|
14 | <sect3><title>Configuration Information</title>
|
---|
15 |
|
---|
16 | <para>Configuring the file alteration monitor.</para>
|
---|
17 |
|
---|
18 | <para>If you use <application>inetd</application>, add the
|
---|
19 | <application><acronym>FAM</acronym></application> entry to
|
---|
20 | <filename>/etc/inetd.conf</filename> with the
|
---|
21 | following command: </para>
|
---|
22 |
|
---|
23 | <screen><userinput><command>echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/bin/fam fam" >> /etc/inetd.conf</command></userinput></screen>
|
---|
24 |
|
---|
25 | <para>If you use <application>xinetd</application>, add an entry to
|
---|
26 | <filename>/etc/xinetd.conf</filename> with the following command (be
|
---|
27 | sure the "nogroup" group exists):</para>
|
---|
28 |
|
---|
29 | <screen><userinput><command>cat >> /etc/xinetd.conf << "EOF"</command>
|
---|
30 | # description: FAM - file alteration monitor
|
---|
31 | service sgi_fam
|
---|
32 | {
|
---|
33 | type = RPC UNLISTED
|
---|
34 | socket_type = stream
|
---|
35 | user = root
|
---|
36 | group = nogroup
|
---|
37 | server = /usr/bin/fam
|
---|
38 | wait = yes
|
---|
39 | protocol = tcp
|
---|
40 | rpc_version = 2
|
---|
41 | rpc_number = 391002
|
---|
42 | }
|
---|
43 | <command>EOF</command></userinput></screen>
|
---|
44 |
|
---|
45 | <para>If you do not have any inetd daemon installed and have no
|
---|
46 | wish to install one, you can also start fam during system startup
|
---|
47 | by installing <filename>/etc/rc.d/init.d/fam</filename>
|
---|
48 | init script included in the
|
---|
49 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
50 |
|
---|
51 | <screen><userinput><command>make install-fam</command></userinput></screen>
|
---|
52 |
|
---|
53 | </sect3>
|
---|
54 |
|
---|
55 | </sect2>
|
---|
56 |
|
---|