source: general/genlib/fam.xml@ f77b0b9

6.3 6.3-rc3
Last change on this file since f77b0b9 was 6732c094, checked in by Randy McMurchy <randy@…>, 17 years ago

Updated all the XML files (and the one stylesheet) to use the 4.5 version of DocBook XML DTD

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6716 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!-- Inserted as a reminder to do this. The mention of a test suite
8 is usually right before the root user installation commands. Please
9 delete these 12 (including one blank) lines after you are done.-->
10
11 <!-- Use one of the two mentions below about a test suite,
12 delete the line that is not applicable. Of course, if the
13 test suite uses syntax other than "make check", revise the
14 line to reflect the actual syntax to run the test suite -->
15
16 <!-- <para>This package does not come with a test suite.</para> -->
17 <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
18
19 <!ENTITY fam-download-http "http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/fam-&fam-version;.tar.gz">
20 <!ENTITY fam-download-ftp "ftp://oss.sgi.com/projects/fam/download/stable/fam-&fam-version;.tar.gz">
21 <!ENTITY fam-md5sum "1bf3ae6c0c58d3201afc97c6a4834e39">
22 <!ENTITY fam-size "301 KB">
23 <!ENTITY fam-buildsize "7.7 MB">
24 <!ENTITY fam-time "0.26 SBU">
25]>
26
27<sect1 id="fam" xreflabel="FAM-&fam-version;">
28 <?dbhtml filename="fam.html"?>
29
30 <sect1info>
31 <othername>$LastChangedBy$</othername>
32 <date>$Date$</date>
33 </sect1info>
34
35 <title>FAM-&fam-version;</title>
36
37 <indexterm zone="fam">
38 <primary sortas="a-FAM">FAM</primary>
39 </indexterm>
40
41 <sect2 role="package">
42 <title>Introduction to FAM</title>
43
44 <para>The <application>FAM</application> package contains a
45 File Alteration Monitor which is useful for notifying applications of
46 changes to the file system.</para>
47
48 <bridgehead renderas="sect3">Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
51 <para>Download (HTTP): <ulink url="&fam-download-http;"/></para>
52 </listitem>
53 <listitem>
54 <para>Download (FTP): <ulink url="&fam-download-ftp;"/></para>
55 </listitem>
56 <listitem>
57 <para>Download MD5 sum: &fam-md5sum;</para>
58 </listitem>
59 <listitem>
60 <para>Download size: &fam-size;</para>
61 </listitem>
62 <listitem>
63 <para>Estimated disk space required: &fam-buildsize;</para>
64 </listitem>
65 <listitem>
66 <para>Estimated build time: &fam-time;</para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71 <itemizedlist spacing='compact'>
72 <listitem>
73 <para>Dnotify patch (Recommended):
74 <ulink url="&patch-root;/fam-&fam-version;-dnotify-1.patch"/></para>
75 </listitem>
76 </itemizedlist>
77
78 <bridgehead renderas="sect3">FAM Dependencies</bridgehead>
79
80 <bridgehead renderas="sect4">Required</bridgehead>
81 <para role="required"><xref linkend="portmap"/></para>
82
83 <para condition="html" role="usernotes">User Notes:
84 <ulink url="&blfs-wiki;/fam"/></para>
85
86 </sect2>
87
88 <sect2 role="installation">
89 <title>Installation of FAM</title>
90
91 <para>Install <application>FAM</application> by running the
92 following commands:</para>
93
94<screen><userinput>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch &amp;&amp;
95chmod -v 755 configure &amp;&amp;
96autoreconf -f -i &amp;&amp;
97./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
98make</userinput></screen>
99
100 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
101
102<screen role="root"><userinput>make install</userinput></screen>
103
104 </sect2>
105
106 <sect2 role="commands">
107 <title>Command Explanations</title>
108
109 <para><command>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch</command>:
110 This patch enables <application>FAM</application> to use
111 the Linux kernel dnotify mechanism to inform the calling process of
112 file modifications, rather than polling the file system for
113 modifications.</para>
114
115 <para><command>chmod -v 755 configure</command>: <command>configure</command> is
116 set to read-only and <command>autoreconf</command> will fail if the
117 permissions aren't changed.</para>
118
119 <para><command>autoreconf -f -i</command>: The autotools need rebuilding
120 because the dnotify patch affects <filename>configure.ac</filename> and
121 <filename>Makefile.am</filename>.</para>
122
123 </sect2>
124
125 <sect2 role="configuration">
126 <title>Configuring FAM</title>
127
128 <sect3 id='fam-config'>
129 <title>Config Files</title>
130
131 <para><filename>/etc/rpc</filename>,
132 <filename>/etc/fam.conf</filename>,
133 <filename>/etc/inetd.conf</filename> or
134 <filename>/etc/xinetd.conf</filename> or
135 <filename>/etc/xinetd.d/fam</filename></para>
136
137 <indexterm zone="fam fam-config">
138 <primary sortas="e-etc-rpc">/etc/rpc</primary>
139 </indexterm>
140
141 <indexterm zone="fam fam-config">
142 <primary sortas="e-etc-fam.conf">/etc/fam.conf</primary>
143 </indexterm>
144
145 <indexterm zone="fam fam-config">
146 <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
147 </indexterm>
148
149 <indexterm zone="fam fam-config">
150 <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
151 </indexterm>
152
153 <indexterm zone="fam fam-config">
154 <primary sortas="e-etc-xinetd.d-sgi_fam">/etc/xinetd.d/sgi_fam</primary>
155 </indexterm>
156
157 </sect3>
158
159 <sect3>
160 <title>Configuration Information</title>
161
162 <para>Configuring the File Alteration Monitor. Perform the following
163 instructions as the <systemitem class='username'>root</systemitem>
164 user.</para>
165
166 <para>If you use <command>inetd</command>, add the
167 <application>FAM</application> entry to
168 <filename>/etc/inetd.conf</filename> with the following command:</para>
169
170<screen role="root"><userinput>echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd fam" \
171 &gt;&gt; /etc/inetd.conf</userinput></screen>
172
173 <para>If you use <command>xinetd</command>, the following command will
174 create the <application>FAM</application> file as
175 <filename>/etc/xinetd.d/sgi_fam</filename> (be sure the
176 <systemitem class="groupname">nogroup</systemitem> group exists):</para>
177
178<screen role="root"><userinput>cat &gt;&gt; /etc/xinetd.d/sgi_fam &lt;&lt; "EOF"
179<literal># Begin /etc/xinetd.d/sgi_fam
180
181# description: FAM - file alteration monitor
182 service sgi_fam
183 {
184 type = RPC UNLISTED
185 socket_type = stream
186 user = root
187 group = nogroup
188 server = /usr/sbin/famd
189 wait = yes
190 protocol = tcp
191 rpc_version = 2
192 rpc_number = 391002
193 }
194
195# End /etc/xinetd.d/sgi_fam</literal>
196EOF</userinput></screen>
197
198 <para id='fam-init'>If you do not have an <command>inetd</command> daemon
199 installed and have no wish to install one, you can also start
200 <command>famd</command> during system startup by installing the
201 <filename>/etc/rc.d/init.d/fam</filename> init script included in the
202 <xref linkend="bootscripts"/> package.</para>
203
204<screen role="root"><userinput>make install-fam</userinput></screen>
205
206 <indexterm zone="fam fam-init">
207 <primary sortas="f-fam">fam</primary>
208 </indexterm>
209
210 </sect3>
211
212 </sect2>
213
214 <sect2 role="content">
215 <title>Contents</title>
216
217 <segmentedlist>
218 <segtitle>Installed Program</segtitle>
219 <segtitle>Installed Library</segtitle>
220 <segtitle>Installed Directories</segtitle>
221
222 <seglistitem>
223 <seg>famd</seg>
224 <seg>libfam.{so,a}</seg>
225 <seg>None</seg>
226 </seglistitem>
227 </segmentedlist>
228
229 <variablelist>
230 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
231 <?dbfo list-presentation="list"?>
232 <?dbhtml list-presentation="table"?>
233
234 <varlistentry id="famd">
235 <term><command>famd</command></term>
236 <listitem>
237 <para>is the file alteration monitor daemon.</para>
238 <indexterm zone="fam famd">
239 <primary sortas="b-famd">famd</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="libfam">
245 <term><filename class='libraryfile'>libfam.{so,a}</filename></term>
246 <listitem>
247 <para>contains functions that support the file allocation monitor.</para>
248 <indexterm zone="fam libfam">
249 <primary sortas="c-libfam">libfam.{so,a}</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 </variablelist>
255
256 </sect2>
257
258</sect1>
Note: See TracBrowser for help on using the repository browser.