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